* wip

* ✌️

* use ajv/dist/core

* revert try

* clean up
This commit is contained in:
tamaina 2022-02-20 13:15:40 +09:00 committed by GitHub
parent fd8f8162e1
commit fcfb5ef0a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
304 changed files with 307 additions and 306 deletions

View file

@ -35,7 +35,7 @@ export const meta = {
},
} as const;
const paramDef = {
export const paramDef = {
type: 'object',
properties: {
folderId: { type: 'string', format: 'misskey:id', nullable: true, default: null },
@ -48,6 +48,7 @@ const paramDef = {
} as const;
// eslint-disable-next-line import/no-default-export
// @ts-ignore
export default define(meta, paramDef, async (ps, user, _, file, cleanup) => {
// Get 'name' parameter
let name = ps.name || file.originalname;