This commit is contained in:
Pitu 2021-06-07 16:25:02 +09:00
parent 3f223a9dbf
commit 5f5716963d
3 changed files with 4 additions and 1 deletions

2
TODO Normal file
View File

@ -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.

View File

@ -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",

View File

@ -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);