mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
Fix undefined instead of null in db query
This commit is contained in:
parent
59003a9ab9
commit
7442b48157
@ -57,7 +57,7 @@ class MonthlyUsageService extends BaseService {
|
||||
// 'DO UPDATE SET `count` = `count` + 1 AND `extra` = ?',
|
||||
}),
|
||||
[
|
||||
year, month, key, actor.type.user.id, maybe_app_id, JSON.stringify(extra),
|
||||
year, month, key, actor.type.user.id, maybe_app_id ?? null, JSON.stringify(extra),
|
||||
...this.db.case({ mysql: [JSON.stringify(extra)], otherwise: [] }),
|
||||
]
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user