From afc13178e228f54a5e6924046c259578402da936 Mon Sep 17 00:00:00 2001 From: Arne Gnisa Date: Mon, 17 Jun 2024 16:31:21 +0200 Subject: [PATCH] N21-1967 fixes test --- .../copy-files-of-parent-param.builder.spec.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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, }, };