fix: fix timeout
This commit is contained in:
parent
2a3bdb3452
commit
bbea119fab
@ -895,7 +895,7 @@ export async function startApi(): Promise<{ app: FastifyInstance; io: Server }>
|
|||||||
where: {
|
where: {
|
||||||
accountId: userId,
|
accountId: userId,
|
||||||
active: true,
|
active: true,
|
||||||
lastActiveAt: { gt: new Date(Date.now() - 1000 * 60 * 5) /* 5 minutes */ }
|
lastActiveAt: { gt: new Date(Date.now() - 1000 * 60 * 15) /* 15 minutes */ }
|
||||||
},
|
},
|
||||||
orderBy: { lastActiveAt: 'desc' },
|
orderBy: { lastActiveAt: 'desc' },
|
||||||
take: limit,
|
take: limit,
|
||||||
|
Loading…
Reference in New Issue
Block a user