fixed exchange mappings and added visible column

This commit is contained in:
Boki 2025-06-18 09:29:20 -04:00
parent 4f4f615a62
commit 0bec1eca83
5 changed files with 66 additions and 7 deletions

View file

@ -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
]);
}