fixed exchange mappings and added visible column
This commit is contained in:
parent
4f4f615a62
commit
0bec1eca83
5 changed files with 66 additions and 7 deletions
|
|
@ -259,8 +259,8 @@ export class SyncManager {
|
|||
|
||||
private async createExchange(qmExchange: any): Promise<void> {
|
||||
const query = `
|
||||
INSERT INTO exchanges (code, name, country, currency)
|
||||
VALUES ($1, $2, $3, $4)
|
||||
INSERT INTO exchanges (code, name, country, currency, visible)
|
||||
VALUES ($1, $2, $3, $4, $5)
|
||||
ON CONFLICT (code) DO NOTHING
|
||||
`;
|
||||
|
||||
|
|
@ -269,6 +269,7 @@ export class SyncManager {
|
|||
qmExchange.exchangeShortName || qmExchange.name,
|
||||
qmExchange.countryCode || 'US',
|
||||
'USD', // Default currency, can be improved
|
||||
true, // New exchanges are visible by default
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue