mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-21 18:55:16 +02:00
chore: ran backend and frontend linting
This commit is contained in:
parent
3d4a8f981c
commit
be7ba76417
11 changed files with 119 additions and 127 deletions
|
|
@ -190,9 +190,7 @@ export function useInbox(
|
|||
ORDER BY created_at DESC
|
||||
LIMIT ${PAGE_SIZE}`;
|
||||
|
||||
const params = typeFilter
|
||||
? [userId, searchSpaceId, typeFilter]
|
||||
: [userId, searchSpaceId];
|
||||
const params = typeFilter ? [userId, searchSpaceId, typeFilter] : [userId, searchSpaceId];
|
||||
|
||||
const db = client.db as any;
|
||||
|
||||
|
|
@ -310,10 +308,7 @@ export function useInbox(
|
|||
AND read = false
|
||||
AND created_at > '${cutoff}'`;
|
||||
|
||||
const result = await client.db.query<{ count: number }>(query, [
|
||||
userId,
|
||||
searchSpaceId,
|
||||
]);
|
||||
const result = await client.db.query<{ count: number }>(query, [userId, searchSpaceId]);
|
||||
if (mounted && result.rows?.[0]) {
|
||||
setTotalUnreadCount(Number(result.rows[0].count) || 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue