diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-19 03:36:51 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-19 03:36:51 +0900 |
| commit | 2fc63133803668b662495e3ae8ad6c3e548aefa3 (patch) | |
| tree | c476d7590c150da8163b3da2fd445a6a8648493e /src/server/api/endpoints/drive | |
| parent | Improve cpu and memory chart in control panel (diff) | |
| download | sharkey-2fc63133803668b662495e3ae8ad6c3e548aefa3.tar.gz sharkey-2fc63133803668b662495e3ae8ad6c3e548aefa3.tar.bz2 sharkey-2fc63133803668b662495e3ae8ad6c3e548aefa3.zip | |
Fix #2325
Diffstat (limited to 'src/server/api/endpoints/drive')
| -rw-r--r-- | src/server/api/endpoints/drive/files/update.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/drive/files/update.ts b/src/server/api/endpoints/drive/files/update.ts index bac04bae78..9ae2719aa7 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) { |