From 3f223a9dbfd3f79c1a8f01c6a95d14035cddeefe Mon Sep 17 00:00:00 2001 From: Pitu Date: Thu, 25 Mar 2021 02:03:57 +0900 Subject: feat: implement initial values and saving to db logic --- src/api/structures/Database.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/structures/Database.js') 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 => { -- cgit v1.2.3