Skip to content

Commit 6b64c35

Browse files
committed
Fix catch
1 parent feaab0b commit 6b64c35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/api/routes/roomRequests.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,9 @@ const roomRequestRoutes: FastifyPluginAsync = async (fastify, _options) => {
716716
});
717717
return reply.status(200).send({ downloadUrl: url });
718718
} catch (e) {
719+
if (e instanceof NotFoundError) {
720+
throw e;
721+
}
719722
request.log.error(e);
720723
throw new DatabaseFetchError({
721724
message: "Could not get request attachments.",

0 commit comments

Comments
 (0)