summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/drive/files/attached-notes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/endpoints/drive/files/attached-notes.ts')
-rw-r--r--src/server/api/endpoints/drive/files/attached-notes.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server/api/endpoints/drive/files/attached-notes.ts b/src/server/api/endpoints/drive/files/attached-notes.ts
index f770bc7136..2b84e114b3 100644
--- a/src/server/api/endpoints/drive/files/attached-notes.ts
+++ b/src/server/api/endpoints/drive/files/attached-notes.ts
@@ -3,7 +3,6 @@ import { ID } from '../../../../../misc/cafy-id';
import define from '../../../define';
import { ApiError } from '../../../error';
import { DriveFiles, Notes } from '../../../../../models';
-import { types, bool } from '../../../../../misc/schema';
export const meta = {
stability: 'stable',
@@ -30,11 +29,11 @@ export const meta = {
},
res: {
- type: types.array,
- optional: bool.false, nullable: bool.false,
+ type: 'array' as const,
+ optional: false as const, nullable: false as const,
items: {
- type: types.object,
- optional: bool.false, nullable: bool.false,
+ type: 'object' as const,
+ optional: false as const, nullable: false as const,
ref: 'Note',
}
},