From 00659220a5c18c5f31661c7de620792cb9d14d68 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 24 Sep 2023 15:51:04 +0900 Subject: [PATCH] Update update.ts --- .../backend/src/server/api/endpoints/drive/files/update.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/drive/files/update.ts b/packages/backend/src/server/api/endpoints/drive/files/update.ts index 7db88e152..c9e2d7464 100644 --- a/packages/backend/src/server/api/endpoints/drive/files/update.ts +++ b/packages/backend/src/server/api/endpoints/drive/files/update.ts @@ -89,7 +89,12 @@ export default class extends Endpoint { // eslint- throw new ApiError(meta.errors.accessDenied); } - const fileObj = await this.driveService.update(file, ps, me); + const fileObj = await this.driveService.update(file, { + folderId: ps.folderId, + name: ps.name, + isSensitive: ps.isSensitive, + comment: ps.comment, + }, me); return fileObj; });