diff options
| author | Pitu <[email protected]> | 2021-01-07 13:22:58 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-01-07 13:22:58 +0900 |
| commit | 9da45d616072cfaa535b539c2ecfdf96133fe381 (patch) | |
| tree | 50bc76fd46a8c5db8c8a8a39f97a85a3192409d8 /src/api/utils | |
| parent | Merge pull request #246 from WeebDev/feature/stream-writer (diff) | |
| download | host.fuwn.me-9da45d616072cfaa535b539c2ecfdf96133fe381.tar.xz host.fuwn.me-9da45d616072cfaa535b539c2ecfdf96133fe381.zip | |
fix: incorrect case on colum name
Diffstat (limited to 'src/api/utils')
| -rw-r--r-- | src/api/utils/Util.js | 4 |
1 files changed, 2 insertions, 2 deletions
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({ |