diff options
| author | Pitu <[email protected]> | 2021-06-07 16:25:02 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-06-07 16:25:02 +0900 |
| commit | 5f5716963dfda3bcae5dab1398d78c933b762c95 (patch) | |
| tree | 27e7c1bc605f3835fe5141147a1e692a7883040a | |
| parent | feat: implement initial values and saving to db logic (diff) | |
| download | host.fuwn.me-5f5716963dfda3bcae5dab1398d78c933b762c95.tar.xz host.fuwn.me-5f5716963dfda3bcae5dab1398d78c933b762c95.zip | |
wip
| -rw-r--r-- | TODO | 2 | ||||
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | src/api/utils/Util.js | 1 |
3 files changed, 4 insertions, 1 deletions
@@ -0,0 +1,2 @@ +Remove generate zips from .env as its not used anymore + > Or make it an admin setting to allow users to create zips for their album links or not. diff --git a/package.json b/package.json index 04a4125..995555f 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "seed": "knex seed:run", "api": "node src/api/structures/Server", "update": "git pull && npm install && npm run migrate && npm run build && npm run restart", - "restart": "pm2 restart lolisafe", + "restart": "pm2 restart chibisafe", "overwrite-config": "cross-env OVERWRITE_SETTINGS=true", "test:vue": "jest --testPathPattern=src/site", "test:api": "jest --testPathPattern=src/tests/api", diff --git a/src/api/utils/Util.js b/src/api/utils/Util.js index e760679..878a542 100644 --- a/src/api/utils/Util.js +++ b/src/api/utils/Util.js @@ -68,6 +68,7 @@ class Util { } static async writeConfigToDb(config, overwrite = true) { + // TODO: Check that the config passes the joi schema validation try { if (overwrite) { await db.table('settings').first().update(config); |