summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints/drive.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/server/api/endpoints/drive.ts')
-rw-r--r--packages/backend/src/server/api/endpoints/drive.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/backend/src/server/api/endpoints/drive.ts b/packages/backend/src/server/api/endpoints/drive.ts
index 35ac98bdf2..d9ab9883ca 100644
--- a/packages/backend/src/server/api/endpoints/drive.ts
+++ b/packages/backend/src/server/api/endpoints/drive.ts
@@ -5,25 +5,25 @@ import { DriveFiles } from '@/models/index';
export const meta = {
tags: ['drive', 'account'],
- requireCredential: true as const,
+ requireCredential: true,
kind: 'read:drive',
res: {
- type: 'object' as const,
- optional: false as const, nullable: false as const,
+ type: 'object',
+ optional: false, nullable: false,
properties: {
capacity: {
- type: 'number' as const,
- optional: false as const, nullable: false as const,
+ type: 'number',
+ optional: false, nullable: false,
},
usage: {
- type: 'number' as const,
- optional: false as const, nullable: false as const,
+ type: 'number',
+ optional: false, nullable: false,
},
},
},
-};
+} as const;
// eslint-disable-next-line import/no-default-export
export default define(meta, async (ps, user) => {