aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rw-r--r--package.json2
-rw-r--r--src/api/utils/Util.js1
3 files changed, 4 insertions, 1 deletions
diff --git a/TODO b/TODO
new file mode 100644
index 0000000..fc1738b
--- /dev/null
+++ b/TODO
@@ -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);