wip
This commit is contained in:
parent
3f223a9dbf
commit
5f5716963d
|
@ -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.
|
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue