Fixed 267U.pre2
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import define from "../../define.js";
|
||||
import { cancelMatch } from "../../../../services/shogi/index.js";
|
||||
export const meta = {
|
||||
tags: [
|
||||
"shogi"
|
||||
],
|
||||
requireCredential: true,
|
||||
kind: "write:account"
|
||||
};
|
||||
export const paramDef = {
|
||||
type: "object",
|
||||
properties: {
|
||||
userId: {
|
||||
type: "string",
|
||||
format: "misskey:id",
|
||||
nullable: true
|
||||
}
|
||||
},
|
||||
required: []
|
||||
};
|
||||
export default define(meta, paramDef, async (ps, user)=>{
|
||||
await cancelMatch(user, ps.userId);
|
||||
});
|
||||
Reference in New Issue
Block a user