Some naming cleanup
This commit is contained in:
@@ -261,9 +261,9 @@ export const app = new Elysia()
|
||||
}, {
|
||||
params: t.Object({ id: t.String() })
|
||||
})
|
||||
.post("/:id/replay", async ({ params: { id } }) => {
|
||||
const replayed = await s.Events.replay(id);
|
||||
if (!replayed) throw new NotFoundError("Event not found or not in a failed state");
|
||||
.post("/:id/retry", async ({ params: { id } }) => {
|
||||
const retried = await s.Events.retry(id);
|
||||
if (!retried) throw new NotFoundError("Event not found or not in a failed state");
|
||||
}, {
|
||||
params: t.Object({ id: t.String() })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user