diff options
| author | Zephyrrus <[email protected]> | 2020-12-27 18:18:06 +0200 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-12-27 18:58:58 +0200 |
| commit | 13058d99d658c0920ce75b79d6b24df18a873ea9 (patch) | |
| tree | 264886edf00890b9e45c55a32f928b179b393d49 /src/api/structures | |
| parent | feat: Add warning to nsfw albums (diff) | |
| download | host.fuwn.me-13058d99d658c0920ce75b79d6b24df18a873ea9.tar.xz host.fuwn.me-13058d99d658c0920ce75b79d6b24df18a873ea9.zip | |
fix: nsfw album toggle doesn't propagate the changes properly
fix: add nsfw flag to the booleanFields in knex postProcessResponse
Diffstat (limited to 'src/api/structures')
| -rw-r--r-- | src/api/structures/Route.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/structures/Route.js b/src/api/structures/Route.js index ff69e77..bb7ba87 100644 --- a/src/api/structures/Route.js +++ b/src/api/structures/Route.js @@ -16,7 +16,7 @@ const db = require('knex')({ some things like different data types for booleans need to be considered like in the implementation below where sqlite returns 1 and 0 instead of true and false. */ - const booleanFields = ['enabled', 'enableDownload', 'isAdmin']; + const booleanFields = ['enabled', 'enableDownload', 'isAdmin', 'nsfw']; const processResponse = row => { Object.keys(row).forEach(key => { |