diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2023-12-04 08:52:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 08:52:48 -0700 |
commit | 3fc8706007d896dcbde69c0ce924a6a5eb66aba6 (patch) | |
tree | 008bbcfc14d819cd2f744eb16607b6aa9c4ad0bf /src/internal-server/start | |
parent | chore: project maintenance (#1466) (diff) | |
download | ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.tar.gz ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.tar.zst ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.zip |
refactor: implement biome (#1467)
- add `biome.json`
- add `biome:check` and `biome:check:fix` commands to `package.json`
- add `biome:check:fix` command to run as part of `prepare-code` command
- install `@biomejs/biome` dependency
- add `@npmcli/move-file` v2.0.1 to `pnpm.allowedDeprecatedVersions`
- fix or comment out various reported lint issues
Diffstat (limited to 'src/internal-server/start')
-rw-r--r-- | src/internal-server/start/migrate.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/internal-server/start/migrate.js b/src/internal-server/start/migrate.js index 4cd502c3f..67533ed9e 100644 --- a/src/internal-server/start/migrate.js +++ b/src/internal-server/start/migrate.js | |||
@@ -35,8 +35,7 @@ module.exports = async () => { | |||
35 | !settings.db_version || | 35 | !settings.db_version || |
36 | settings.db_version !== ferdiumVersion | 36 | settings.db_version !== ferdiumVersion |
37 | ) { | 37 | ) { |
38 | const srcVersion = | 38 | const srcVersion = settings?.db_version || '5.4.0-beta.2'; |
39 | settings && settings.db_version ? settings.db_version : '5.4.0-beta.2'; | ||
40 | migrateLog(`🔮 Migrating table from ${srcVersion} to ${ferdiumVersion}`); | 39 | migrateLog(`🔮 Migrating table from ${srcVersion} to ${ferdiumVersion}`); |
41 | 40 | ||
42 | // Migrate database to current Ferdium version | 41 | // Migrate database to current Ferdium version |