mirror of
https://github.com/LukeHagar/immich.git
synced 2025-12-06 04:20:06 +00:00
fix: migration if media location is set (#20532)
This commit is contained in:
@@ -101,6 +101,10 @@ export class StorageService extends BaseService {
|
||||
const savedValue = await this.systemMetadataRepository.get(SystemMetadataKey.MediaLocation);
|
||||
let previous = savedValue?.location || '';
|
||||
|
||||
if (!previous && this.configRepository.getEnv().storage.mediaLocation) {
|
||||
previous = current;
|
||||
}
|
||||
|
||||
if (!previous) {
|
||||
previous = path.startsWith('upload/') ? 'upload' : '/usr/src/app/upload';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user