diff options
| author | Fuwn <[email protected]> | 2023-12-07 02:56:56 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-07 02:56:56 -0800 |
| commit | 096be0ec7404134b0d2538add84687a6d96e8b02 (patch) | |
| tree | caafd7d91ba3232b54e9e5a0c237af41ef6fb519 /src/lib | |
| parent | ci(earthly): just copy build docker (diff) | |
| download | due.moe-096be0ec7404134b0d2538add84687a6d96e8b02.tar.xz due.moe-096be0ec7404134b0d2538add84687a6d96e8b02.zip | |
fix(app): types for bun
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/userBadgesDatabase.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/userBadgesDatabase.ts b/src/lib/userBadgesDatabase.ts index 8cf40d5b..d429c054 100644 --- a/src/lib/userBadgesDatabase.ts +++ b/src/lib/userBadgesDatabase.ts @@ -41,7 +41,7 @@ export const addUserBadge = (userId: number, badge: Badge) => { `INSERT INTO user_badges (user_id, post, image, description) VALUES (?1, ?2, ?3, ?4);` ); - statement.run([userId, post, image, description]); + statement.run(userId.toString(), post, image, description || null); }; export const removeUserBadge = (userId: number, id: number) => { |