summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/drive/stream.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/endpoints/drive/stream.ts')
-rw-r--r--src/server/api/endpoints/drive/stream.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/server/api/endpoints/drive/stream.ts b/src/server/api/endpoints/drive/stream.ts
index 96d9f82421..db17979a4b 100644
--- a/src/server/api/endpoints/drive/stream.ts
+++ b/src/server/api/endpoints/drive/stream.ts
@@ -3,6 +3,7 @@ import { ID } from '../../../../misc/cafy-id';
import define from '../../define';
import { DriveFiles } from '../../../../models';
import { makePaginationQuery } from '../../common/make-pagination-query';
+import { types, bool } from '../../../../misc/schema';
export const meta = {
tags: ['drive'],
@@ -31,10 +32,13 @@ export const meta = {
},
res: {
- type: 'array',
+ type: types.array,
+ optional: bool.false, nullable: bool.false,
items: {
- type: 'DriveFile',
- },
+ type: types.object,
+ optional: bool.false, nullable: bool.false,
+ ref: 'DriveFile',
+ }
},
};