统一前后端代码格式化配置
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
import fs from 'node:fs'
|
||||
|
||||
import {
|
||||
listAppConfigEntries,
|
||||
upsertAppConfigEntry,
|
||||
} from '../../repositories/app-config-repo.js'
|
||||
import { listAppConfigEntries, upsertAppConfigEntry } from '../../repositories/app-config-repo.js'
|
||||
import { readJsonFile } from '../../utils/json-file-store.js'
|
||||
|
||||
type NormalizeJsonValue<T> = (value: unknown) => T
|
||||
|
||||
@@ -67,8 +67,8 @@ const JSON_CONFIG_MIGRATION_ITEMS: JsonConfigMigrationItem[] = [
|
||||
]
|
||||
|
||||
export async function migrateJsonConfigFilesToDatabase() {
|
||||
const migrated: Array<{ configKey: string, filePath: string }> = []
|
||||
const skipped: Array<{ configKey: string, filePath: string, reason: string }> = []
|
||||
const migrated: Array<{ configKey: string; filePath: string }> = []
|
||||
const skipped: Array<{ configKey: string; filePath: string; reason: string }> = []
|
||||
|
||||
for (const item of JSON_CONFIG_MIGRATION_ITEMS) {
|
||||
const filePath = path.join(DATA_DIR, item.fileName)
|
||||
|
||||
Reference in New Issue
Block a user