diff options
| author | Pitu <[email protected]> | 2021-03-25 02:03:57 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-03-25 02:03:57 +0900 |
| commit | 3f223a9dbfd3f79c1a8f01c6a95d14035cddeefe (patch) | |
| tree | 103dcee83a84c1b7a3b33f7339d7deb8b2ed56bb /src/api/structures/Database.js | |
| parent | chore: move database migration script (diff) | |
| download | host.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.js | 2 |
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 => { |