diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-24 14:54:15 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-24 14:54:15 +0900 |
| commit | 9fac8a611fbca9acd8c562c9cc2d63f6d1be683a (patch) | |
| tree | 8e3fcab4d76168bfff340beae50f210de49d4485 /src/server/api/endpoints | |
| parent | Update attached-notes.ts (diff) | |
| download | sharkey-9fac8a611fbca9acd8c562c9cc2d63f6d1be683a.tar.gz sharkey-9fac8a611fbca9acd8c562c9cc2d63f6d1be683a.tar.bz2 sharkey-9fac8a611fbca9acd8c562c9cc2d63f6d1be683a.zip | |
Fix response
Diffstat (limited to 'src/server/api/endpoints')
| -rw-r--r-- | src/server/api/endpoints/drive/files/check-existence.ts | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/server/api/endpoints/drive/files/check-existence.ts b/src/server/api/endpoints/drive/files/check-existence.ts index 5c5cf29547..ab19566f1c 100644 --- a/src/server/api/endpoints/drive/files/check-existence.ts +++ b/src/server/api/endpoints/drive/files/check-existence.ts @@ -25,13 +25,8 @@ export const meta = { }, res: { - type: types.array, + type: types.boolean, optional: bool.false, nullable: bool.false, - items: { - type: types.object, - optional: bool.false, nullable: bool.false, - ref: 'DriveFile', - } }, }; @@ -41,7 +36,5 @@ export default define(meta, async (ps, user) => { userId: user.id, }); - return { - file: file ? await DriveFiles.pack(file, { self: true }) : null - }; + return file != null; }); |