diff options
| author | yupix <yupi0982@outlook.jp> | 2024-06-22 14:52:27 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-22 14:52:27 +0900 |
| commit | b50eb511b0cf6fb05d37c3370726f940c1438a99 (patch) | |
| tree | 52e14d01a8a52799da0cf7796caab1c244f04a6b /packages/backend/src/server/api/endpoints/clips | |
| parent | fix(backend): フィードのノートのMFMはHTMLにレンダーしてか... (diff) | |
| download | sharkey-b50eb511b0cf6fb05d37c3370726f940c1438a99.tar.gz sharkey-b50eb511b0cf6fb05d37c3370726f940c1438a99.tar.bz2 sharkey-b50eb511b0cf6fb05d37c3370726f940c1438a99.zip | |
refactor: api/*/update系の必須キーを最低限に (#13824)
* refactor: clips/updateの必須キーをclipIdのみに
* refactor: admin/roles/update の必須キーをroleIdのみに
* feat: pages/update の必須キーをpageIdのみに
* refactor: gallery/posts/update の必須キーをpostidのみに
* feat: misskey-jsの型を更新
* feat: i/webhooks/updateの必須キーをwebhookIdのみに
* feat: admin/ad/updateの必須キーをidのみに
* feat: misskey-jsの型を更新
* chore: update CHANGELOG.md
* docs: update CHANGELOG.md
* fix: secretが更新できなくなる場合がある
Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com>
* Update packages/backend/src/server/api/endpoints/gallery/posts/update.ts
---------
Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/backend/src/server/api/endpoints/clips')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/clips/update.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/endpoints/clips/update.ts b/packages/backend/src/server/api/endpoints/clips/update.ts index 3b44ba81b3..603a3ccf3d 100644 --- a/packages/backend/src/server/api/endpoints/clips/update.ts +++ b/packages/backend/src/server/api/endpoints/clips/update.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import { Inject, Injectable } from '@nestjs/common'; +import { Injectable } from '@nestjs/common'; import { Endpoint } from '@/server/api/endpoint-base.js'; import { ClipEntityService } from '@/core/entities/ClipEntityService.js'; import { ClipService } from '@/core/ClipService.js'; @@ -41,7 +41,7 @@ export const paramDef = { isPublic: { type: 'boolean' }, description: { type: 'string', nullable: true, minLength: 1, maxLength: 2048 }, }, - required: ['clipId', 'name'], + required: ['clipId'], } as const; @Injectable() |