forked from mirrors/misskey
lint
This commit is contained in:
@@ -136,6 +136,7 @@ export const meta = {
|
||||
},
|
||||
};
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default define(meta, async (ps, user) => {
|
||||
const query = makePaginationQuery(ReversiGames.createQueryBuilder('game'), ps.sinceId, ps.untilId)
|
||||
.andWhere('game.isStarted = TRUE');
|
||||
|
||||
@@ -142,6 +142,7 @@ export const meta = {
|
||||
},
|
||||
};
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default define(meta, async (ps, user) => {
|
||||
const game = await ReversiGames.findOne(ps.gameId);
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ export const meta = {
|
||||
},
|
||||
};
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default define(meta, async (ps, user) => {
|
||||
const game = await ReversiGames.findOne(ps.gameId);
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ export const meta = {
|
||||
},
|
||||
};
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default define(meta, async (ps, user) => {
|
||||
// Find session
|
||||
const invitations = await ReversiMatchings.find({
|
||||
|
||||
@@ -36,6 +36,7 @@ export const meta = {
|
||||
},
|
||||
};
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default define(meta, async (ps, user) => {
|
||||
// Myself
|
||||
if (ps.userId === user.id) {
|
||||
|
||||
@@ -7,6 +7,7 @@ export const meta = {
|
||||
requireCredential: true as const,
|
||||
};
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default define(meta, async (ps, user) => {
|
||||
await ReversiMatchings.delete({
|
||||
parentId: user.id,
|
||||
|
||||
Reference in New Issue
Block a user