summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints/admin/drive
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-04-02 16:47:53 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-04-02 16:47:53 +0900
commitc03b70c949923b830a6d0361d1aa4d5f5614b7b7 (patch)
tree6cf6995e808969e845f71b15cbd504e0dbf9e8ed /packages/backend/src/server/api/endpoints/admin/drive
parent12.109.0 (diff)
downloadsharkey-c03b70c949923b830a6d0361d1aa4d5f5614b7b7.tar.gz
sharkey-c03b70c949923b830a6d0361d1aa4d5f5614b7b7.tar.bz2
sharkey-c03b70c949923b830a6d0361d1aa4d5f5614b7b7.zip
revert 484e023c0
Diffstat (limited to 'packages/backend/src/server/api/endpoints/admin/drive')
-rw-r--r--packages/backend/src/server/api/endpoints/admin/drive/files.ts7
-rw-r--r--packages/backend/src/server/api/endpoints/admin/drive/show-file.ts20
2 files changed, 6 insertions, 21 deletions
diff --git a/packages/backend/src/server/api/endpoints/admin/drive/files.ts b/packages/backend/src/server/api/endpoints/admin/drive/files.ts
index 119c4db19b..646d85a1e0 100644
--- a/packages/backend/src/server/api/endpoints/admin/drive/files.ts
+++ b/packages/backend/src/server/api/endpoints/admin/drive/files.ts
@@ -27,12 +27,7 @@ export const paramDef = {
untilId: { type: 'string', format: 'misskey:id' },
type: { type: 'string', nullable: true, pattern: /^[a-zA-Z0-9\/\-*]+$/.toString().slice(1, -1) },
origin: { type: 'string', enum: ['combined', 'local', 'remote'], default: "local" },
- hostname: {
- type: 'string',
- nullable: true,
- default: null,
- description: 'The local host is represented with `null`.',
- },
+ hostname: { type: 'string', nullable: true, default: null },
},
required: [],
} as const;
diff --git a/packages/backend/src/server/api/endpoints/admin/drive/show-file.ts b/packages/backend/src/server/api/endpoints/admin/drive/show-file.ts
index 039df74f1b..4b27fc0188 100644
--- a/packages/backend/src/server/api/endpoints/admin/drive/show-file.ts
+++ b/packages/backend/src/server/api/endpoints/admin/drive/show-file.ts
@@ -40,7 +40,6 @@ export const meta = {
userHost: {
type: 'string',
optional: false, nullable: true,
- description: 'The local host is represented with `null`.',
},
md5: {
type: 'string',
@@ -152,20 +151,11 @@ export const meta = {
export const paramDef = {
type: 'object',
- anyOf: [
- {
- properties: {
- fileId: { type: 'string', format: 'misskey:id' },
- },
- required: ['fileId'],
- },
- {
- properties: {
- url: { type: 'string' },
- },
- required: ['url'],
- },
- ],
+ properties: {
+ fileId: { type: 'string', format: 'misskey:id' },
+ url: { type: 'string' },
+ },
+ required: [],
} as const;
// eslint-disable-next-line import/no-default-export