From 9b11df783a984b054dbb29587f8af0b23955c1a0 Mon Sep 17 00:00:00 2001 From: J-hoplin1 Date: Sun, 7 Jul 2024 01:24:03 +0900 Subject: [PATCH] Fix: Fix create folder API --- src/modules/folders/folders.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/folders/folders.service.ts b/src/modules/folders/folders.service.ts index 590d7b4..256bc16 100644 --- a/src/modules/folders/folders.service.ts +++ b/src/modules/folders/folders.service.ts @@ -17,7 +17,7 @@ export class FoldersService { async createMany(userId: string, createFolderDto: CreateFolderDto) { const folders = createFolderDto.names.map((name) => ({ - userId: new MongooseSchema.Types.ObjectId(userId), + userId: userId, name, type: FolderType.CUSTOM, }));