From 9da45d616072cfaa535b539c2ecfdf96133fe381 Mon Sep 17 00:00:00 2001 From: Pitu Date: Thu, 7 Jan 2021 13:22:58 +0900 Subject: fix: incorrect case on colum name --- src/api/utils/Util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api') diff --git a/src/api/utils/Util.js b/src/api/utils/Util.js index d992d55..2b8a722 100644 --- a/src/api/utils/Util.js +++ b/src/api/utils/Util.js @@ -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({ -- cgit v1.2.3