Skip to content

Commit 0836eba

Browse files
committed
add log
1 parent ce48086 commit 0836eba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

supabase/functions/fetch-scrobbles/db.hooman.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,14 @@ export class TableHooman extends DbSupabaseTable {
2929
return data.id;
3030
}
3131

32+
console.log(`Creating new user: ${lastFmUser}`);
33+
3234
const { data: insertData, error: insertError } = await this.getSupabase()
3335
.from(this.tableName)
34-
.insert({ [columnName.lastfm_user]: lastFmUser })
36+
.insert({
37+
[columnName.created_at]: new Date(),
38+
[columnName.lastfm_user]: lastFmUser,
39+
})
3540
.select("id")
3641
.maybeSingle<{ id: string }>();
3742

0 commit comments

Comments
 (0)