hotfix: do not run saas migration for harddeleted files
This commit is contained in:
parent
f6190bddc5
commit
c636a67277
@ -96,6 +96,11 @@ public class SaasMigrationService implements TenantSyncService {
|
||||
|
||||
for (var file : files) {
|
||||
|
||||
if (fileStatusPersistenceService.getStatus(file.getFileId()).getHardDeletedTime() != null){
|
||||
saasMigrationStatusPersistenceService.updateStatus(file.getFileId(), SaasMigrationStatus.FINISHED);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!file.getStatus().equals(SaasMigrationStatus.MIGRATION_REQUIRED)) {
|
||||
log.info("Skipping {} for tenant {} since migration status is {}", file.getFileId(), TenantContext.getTenantId(), file.getStatus());
|
||||
continue;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user