From 2c5fb36e7f07fde634bcc91f6489c0c5b4885fcd Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Tue, 6 May 2025 21:15:56 -0400 Subject: add missing "return reply" calls to async fastify routes Required, according to docs: https://fastify.dev/docs/latest/Reference/Routes/#async-await --- .../backend/src/server/api/mastodon/endpoints/notifications.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/backend/src/server/api/mastodon/endpoints/notifications.ts') diff --git a/packages/backend/src/server/api/mastodon/endpoints/notifications.ts b/packages/backend/src/server/api/mastodon/endpoints/notifications.ts index 75512c2efc..f6cc59e782 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/notifications.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/notifications.ts @@ -45,7 +45,7 @@ export class ApiNotificationsMastodon { } attachMinMaxPagination(request, reply, response); - reply.send(response); + return reply.send(response); }); fastify.get('/v1/notification/:id', async (_request, reply) => { @@ -62,7 +62,7 @@ export class ApiNotificationsMastodon { }); } - reply.send(response); + return reply.send(response); }); fastify.post('/v1/notification/:id/dismiss', async (_request, reply) => { @@ -71,14 +71,14 @@ export class ApiNotificationsMastodon { const client = this.clientService.getClient(_request); const data = await client.dismissNotification(_request.params.id); - reply.send(data.data); + return reply.send(data.data); }); fastify.post('/v1/notifications/clear', async (_request, reply) => { const client = this.clientService.getClient(_request); const data = await client.dismissNotifications(); - reply.send(data.data); + return reply.send(data.data); }); } } -- cgit v1.2.3-freya