mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor: config init event for first config load (#13930)
This commit is contained in:
parent
c383e115af
commit
d456d35510
18 changed files with 160 additions and 146 deletions
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>>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue