fix(server): ulidを使用していると動作しない問題を修正
This commit is contained in:
parent
6cd3ff5848
commit
357da2ce3a
@ -31,7 +31,7 @@ const ajv = new Ajv({
|
|||||||
useDefaults: true,
|
useDefaults: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
ajv.addFormat('misskey:id', /^[a-z0-9]+$/);
|
ajv.addFormat('misskey:id', /^[a-zA-Z0-9]+$/);
|
||||||
|
|
||||||
export default function <T extends IEndpointMeta, Ps extends Schema>(meta: T, paramDef: Ps, cb: executor<T, Ps>)
|
export default function <T extends IEndpointMeta, Ps extends Schema>(meta: T, paramDef: Ps, cb: executor<T, Ps>)
|
||||||
: (params: any, user: T['requireCredential'] extends true ? SimpleUserInfo : SimpleUserInfo | null, token: AccessToken | null, file?: any) => Promise<any> {
|
: (params: any, user: T['requireCredential'] extends true ? SimpleUserInfo : SimpleUserInfo | null, token: AccessToken | null, file?: any) => Promise<any> {
|
||||||
|
Loading…
Reference in New Issue
Block a user