mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-05 19:26:02 +02:00
✌️
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||
return rej('cannot set since_id and until_id');
|
||||
}
|
||||
|
||||
const q = my ? {
|
||||
const q: any = my ? {
|
||||
is_started: true,
|
||||
$or: [{
|
||||
user1_id: user._id
|
||||
@@ -34,7 +34,6 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||
is_started: true
|
||||
};
|
||||
|
||||
|
||||
const sort = {
|
||||
_id: -1
|
||||
};
|
||||
@@ -52,7 +51,8 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||
|
||||
// Fetch games
|
||||
const games = await Game.find(q, {
|
||||
sort
|
||||
sort,
|
||||
limit
|
||||
});
|
||||
|
||||
// Reponse
|
||||
|
||||
Reference in New Issue
Block a user