From e74ab36313a49d7dc96459a34184c342c4ddc5ae Mon Sep 17 00:00:00 2001 From: ntr Date: Mon, 28 Nov 2022 10:10:37 +1100 Subject: [PATCH] fix offers comparison --- api/index.ts | 2 +- api/src/discogs.ts | 2 +- api/src/offers.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/index.ts b/api/index.ts index 4d12a0c..0c70153 100644 --- a/api/index.ts +++ b/api/index.ts @@ -28,7 +28,7 @@ async function start() { events, } = createServices(log); - // events.emit(Events.StartupSync); + events.emit(Events.StartupSync); // events.emit(Events.ListingsUpdated); api.listen(); diff --git a/api/src/discogs.ts b/api/src/discogs.ts index d220281..efff64c 100644 --- a/api/src/discogs.ts +++ b/api/src/discogs.ts @@ -48,7 +48,7 @@ export default function createDiscogs(log: Log, pg: Pg) { // @ts-ignore const additions = results.filter(r => r.status === 'fulfilled').map(r => r.value); - log.info(additions); + log.info('want list additions', additions); return additions; } diff --git a/api/src/offers.ts b/api/src/offers.ts index 605acdc..f73e143 100644 --- a/api/src/offers.ts +++ b/api/src/offers.ts @@ -51,7 +51,7 @@ export default function createOffers(log: Log, pg: Pg) { // TODO probably need to take one of each condition of record from a store // eg. they have a VG+ and a M we should make offers for each - log.info(sorted); + log.trace('generated offers', sorted); const inserts = await pg.offersUpdate(sorted);