Skip to content

Commit

Permalink
fix: more redis error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
zaida04 authored Apr 14, 2023
1 parent a979c5f commit f91e613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/shield.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const generateSvg = async (
});
await redis.set(`badge:${type}:${inviteId}:${color}:${style}`, svg, {
EX: 900,
});
}).catch(() => void 0);
return svg;
} catch (e) {
return internalError(res, (e as Error).message);
Expand Down

0 comments on commit f91e613

Please sign in to comment.