diff --git a/apps/server/src/modules/files-storage-client/mapper/copy-files-of-parent-param.builder.spec.ts b/apps/server/src/modules/files-storage-client/mapper/copy-files-of-parent-param.builder.spec.ts index c3d9fb9573a..352ace95fc5 100644 --- a/apps/server/src/modules/files-storage-client/mapper/copy-files-of-parent-param.builder.spec.ts +++ b/apps/server/src/modules/files-storage-client/mapper/copy-files-of-parent-param.builder.spec.ts @@ -24,13 +24,15 @@ describe('CopyFilesOfParentParamBuilder', () => { userId, source: { parentType: FileRecordParentType.Task, - schoolId: sourceEntity.getSchoolId(), parentId: sourceEntity.id, + storageLocationId: sourceEntity.getSchoolId(), + storageLocation: StorageLocation.SCHOOL, }, target: { parentType: FileRecordParentType.Task, - schoolId: targetEntity.getSchoolId(), parentId: targetEntity.id, + storageLocationId: targetEntity.getSchoolId(), + storageLocation: StorageLocation.SCHOOL, }, }; @@ -51,13 +53,15 @@ describe('CopyFilesOfParentParamBuilder', () => { userId, source: { parentType: FileRecordParentType.Lesson, - schoolId: sourceEntity.getSchoolId(), parentId: sourceEntity.id, + storageLocationId: sourceEntity.getSchoolId(), + storageLocation: StorageLocation.SCHOOL, }, target: { parentType: FileRecordParentType.Lesson, - schoolId: targetEntity.getSchoolId(), parentId: targetEntity.id, + storageLocationId: targetEntity.getSchoolId(), + storageLocation: StorageLocation.SCHOOL, }, };