aboutsummaryrefslogtreecommitdiff
path: root/src/api/structures/Database.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2021-03-25 02:03:57 +0900
committerPitu <[email protected]>2021-03-25 02:03:57 +0900
commit3f223a9dbfd3f79c1a8f01c6a95d14035cddeefe (patch)
tree103dcee83a84c1b7a3b33f7339d7deb8b2ed56bb /src/api/structures/Database.js
parentchore: move database migration script (diff)
downloadhost.fuwn.me-3f223a9dbfd3f79c1a8f01c6a95d14035cddeefe.tar.xz
host.fuwn.me-3f223a9dbfd3f79c1a8f01c6a95d14035cddeefe.zip
feat: implement initial values and saving to db logic
Diffstat (limited to 'src/api/structures/Database.js')
-rw-r--r--src/api/structures/Database.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/structures/Database.js b/src/api/structures/Database.js
index 39632a1..ed30c50 100644
--- a/src/api/structures/Database.js
+++ b/src/api/structures/Database.js
@@ -23,7 +23,7 @@ const db = 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', 'nsfw'];
+ const booleanFields = ['enabled', 'enableDownload', 'isAdmin', 'nsfw', 'generateZips', 'publicMode', 'userAccounts'];
const processResponse = row => {
Object.keys(row).forEach(key => {