We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce48086 commit 0836ebaCopy full SHA for 0836eba
supabase/functions/fetch-scrobbles/db.hooman.ts
@@ -29,9 +29,14 @@ export class TableHooman extends DbSupabaseTable {
29
return data.id;
30
}
31
32
+ console.log(`Creating new user: ${lastFmUser}`);
33
+
34
const { data: insertData, error: insertError } = await this.getSupabase()
35
.from(this.tableName)
- .insert({ [columnName.lastfm_user]: lastFmUser })
36
+ .insert({
37
+ [columnName.created_at]: new Date(),
38
+ [columnName.lastfm_user]: lastFmUser,
39
+ })
40
.select("id")
41
.maybeSingle<{ id: string }>();
42
0 commit comments