mirror of
https://github.com/immich-app/immich.git
synced 2025-01-03 13:09:27 +02:00
fix(server): Disable duplicate detection when smart search disabled (#9565)
This commit is contained in:
parent
2e62c7b417
commit
975f2351ec
@ -63,7 +63,7 @@ export const isSmartSearchEnabled = (machineLearning: SystemConfig['machineLearn
|
|||||||
export const isFacialRecognitionEnabled = (machineLearning: SystemConfig['machineLearning']) =>
|
export const isFacialRecognitionEnabled = (machineLearning: SystemConfig['machineLearning']) =>
|
||||||
isMachineLearningEnabled(machineLearning) && machineLearning.facialRecognition.enabled;
|
isMachineLearningEnabled(machineLearning) && machineLearning.facialRecognition.enabled;
|
||||||
export const isDuplicateDetectionEnabled = (machineLearning: SystemConfig['machineLearning']) =>
|
export const isDuplicateDetectionEnabled = (machineLearning: SystemConfig['machineLearning']) =>
|
||||||
isMachineLearningEnabled(machineLearning) && machineLearning.duplicateDetection.enabled;
|
isSmartSearchEnabled(machineLearning) && machineLearning.duplicateDetection.enabled;
|
||||||
|
|
||||||
export const isConnectionAborted = (error: Error | any) => error.code === 'ECONNABORTED';
|
export const isConnectionAborted = (error: Error | any) => error.code === 'ECONNABORTED';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user