From 78ab81cc83ce7b28c2c31652cc5b57e39223f707 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 19 Aug 2018 03:36:51 +0900 Subject: [PATCH] Fix #2325 --- src/server/api/endpoints/drive/files/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/drive/files/update.ts b/src/server/api/endpoints/drive/files/update.ts index bac04bae7..9ae2719aa 100644 --- a/src/server/api/endpoints/drive/files/update.ts +++ b/src/server/api/endpoints/drive/files/update.ts @@ -64,7 +64,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) = if (ps.name) file.filename = ps.name; - if (ps.isSensitive) file.metadata.isSensitive = ps.isSensitive; + if (ps.isSensitive !== undefined) file.metadata.isSensitive = ps.isSensitive; if (ps.folderId !== undefined) { if (ps.folderId === null) {