diff --git a/package-lock.json b/package-lock.json index 7083152..048bc12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "photoprism-helper", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "photoprism-helper", - "version": "1.0.1", + "version": "1.0.2", "license": "ISC", "dependencies": { "axios": "^0.27.2", diff --git a/package.json b/package.json index 556d177..464370a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photoprism-helper", - "version": "1.0.1", + "version": "1.0.2", "description": "An unofficial companion tool created for use alongside PhotoPrism to enable api endpoints and automation.", "main": "build/api.js", "scripts": { @@ -12,9 +12,9 @@ "start:dev": "nodemon", "start:prd": "node build/api.js", "reinstall:wa": "npm remove winston-axios && npm install winston-axios", - "release:patch": "npm run prepare && npm version patch", - "release:minor": "npm run prepare && npm version patch", - "release:major": "npm run prepare && npm version patch" + "release:patch": "npm run build:prep && npm version patch", + "release:minor": "npm run build:prep && npm version patch", + "release:major": "npm run build:prep && npm version patch" }, "keywords": [ "PhotoPrism", diff --git a/src/config.ts b/src/config.ts index 6833354..3bfa2b3 100644 --- a/src/config.ts +++ b/src/config.ts @@ -110,9 +110,7 @@ export const logConfig: LoggerConfig = { export const configMessages: string[] = []; // Validate and set the timezone for the application -if (isTimezone(optionsConfig.timezone, true)) { - optionsConfig.timezone; -} else { +if (!isTimezone(optionsConfig.timezone, true)) { configMessages.push('Timezone is not valid: ' + optionsConfig.timezone); optionsConfig.timezone = 'Australia/Melbourne'; }