mirror of
https://github.com/immich-app/immich.git
synced 2025-12-09 21:13:45 +09:00
refactor: config init event for first config load (#13930)
This commit is contained in:
29
server/test/fixtures/system-config.stub.ts
vendored
29
server/test/fixtures/system-config.stub.ts
vendored
@@ -54,6 +54,9 @@ export const systemConfigStub = {
|
||||
},
|
||||
libraryWatchEnabled: {
|
||||
library: {
|
||||
scan: {
|
||||
enabled: false,
|
||||
},
|
||||
watch: {
|
||||
enabled: true,
|
||||
},
|
||||
@@ -61,6 +64,9 @@ export const systemConfigStub = {
|
||||
},
|
||||
libraryWatchDisabled: {
|
||||
library: {
|
||||
scan: {
|
||||
enabled: false,
|
||||
},
|
||||
watch: {
|
||||
enabled: false,
|
||||
},
|
||||
@@ -72,6 +78,20 @@ export const systemConfigStub = {
|
||||
enabled: true,
|
||||
cronExpression: '0 0 * * *',
|
||||
},
|
||||
watch: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
libraryScanAndWatch: {
|
||||
library: {
|
||||
scan: {
|
||||
enabled: true,
|
||||
cronExpression: '0 0 * * *',
|
||||
},
|
||||
watch: {
|
||||
enabled: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
backupEnabled: {
|
||||
@@ -88,4 +108,13 @@ export const systemConfigStub = {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
machineLearningEnabled: {
|
||||
machineLearning: {
|
||||
enabled: true,
|
||||
clip: {
|
||||
modelName: 'ViT-B-16__openai',
|
||||
enabled: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
} satisfies Record<string, DeepPartial<SystemConfig>>;
|
||||
|
||||
Reference in New Issue
Block a user