From 8e241c6be334aad4ba8f2c8fba3c45ec706357d8 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Thu, 15 Feb 2024 08:43:30 -0500 Subject: [PATCH] be less verbose when gathering --- src/fetchCollection.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/fetchCollection.js b/src/fetchCollection.js index a944c22..22e9930 100644 --- a/src/fetchCollection.js +++ b/src/fetchCollection.js @@ -98,7 +98,6 @@ export async function update_user_games(db, username) { }); for (let game of games) { - console.log(game.name); const existing_game = game_present.get(username, game.bgg_id); if (existing_game) { if ( @@ -106,17 +105,15 @@ export async function update_user_games(db, username) { (attr) => existing_game[attr] != game[attr], ) ) { - console.log('updating game'); + console.log(game.name, 'updating game'); update.run({ ...game, updated_at, username, }); - } else { - console.log("didn't change"); } } else { - console.log('new game!'); + console.log(game.name, 'new game!'); insert.run({ username, updated_at,