Don't suppress replay db errors

A try-catch in Replays was too general.
This commit is contained in:
Guangcong Luo 2023-12-08 23:51:56 -05:00
parent eb60769cd3
commit a36cb7e4e9

View File

@ -109,7 +109,8 @@ export const Replays = new class {
players: replayData.players,
});
}
} catch {
} catch (e: any) {
if (e?.routine !== 'NewUniquenessConstraintViolationError') throw e;
await replays.update(replay.id, {
log: replayData.log,
inputlog: replayData.inputlog,