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);