remove unnecessary cast

Signed-off-by: Fredrik Adelöw <freben@spotify.com>
This commit is contained in:
Fredrik Adelöw
2026-03-10 14:39:01 +01:00
parent dfdb8e3a73
commit 5dc320ed5e
@@ -606,10 +606,7 @@ export async function createRouter(
.post('/locations', async (req, res) => {
const location = await validateRequestBody(req, locationInput);
const dryRun = yn(req.query.dryRun, { default: false });
const onConflict = req.query.onConflict as
| 'refresh'
| 'reject'
| undefined;
const onConflict = req.query.onConflict;
const auditorEvent = await auditor.createEvent({
eventId: 'location-mutate',