chore:linting,formatting,type fixing, ....

This commit is contained in:
2025-11-08 14:39:33 +01:00
parent 0754d62d0e
commit ae339d68e1
17 changed files with 86 additions and 74 deletions

View File

@@ -78,7 +78,7 @@ export const PUT: RequestHandler = async ({ params, request, locals }) => {
if (action === 'accept') {
const senderId = friendshipRecord.userId;
const shouldNotify = await notificationService.shouldNotify(senderId, 'friend_accepted');
if (shouldNotify) {
// Get accepter's username
const accepterUser = await db
@@ -86,7 +86,7 @@ export const PUT: RequestHandler = async ({ params, request, locals }) => {
.from(user)
.where(eq(user.id, locals.user.id))
.limit(1);
const accepterUsername = accepterUser[0]?.username || 'Someone';
await notificationService.createNotification({