fix: incorrect case on colum name

This commit is contained in:
Pitu 2021-01-07 13:22:58 +09:00
parent f944469162
commit 9da45d6160
1 changed files with 2 additions and 2 deletions

View File

@ -226,9 +226,9 @@ class Util {
const dbFile = await db.table('files')
.where(function() {
if (user === undefined) {
this.whereNull('userid');
this.whereNull('userId');
} else {
this.where('userid', user.id);
this.where('userId', user.id);
}
})
.where({