From 5c847026aad79fcac4d020786ded9f867696c226 Mon Sep 17 00:00:00 2001 From: sct Date: Sat, 2 Jan 2021 07:48:43 +0000 Subject: [PATCH] fix(api): return 202 when same seasons are requested again --- server/routes/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/request.ts b/server/routes/request.ts index dfafdc606..ea82825c8 100644 --- a/server/routes/request.ts +++ b/server/routes/request.ts @@ -164,7 +164,7 @@ requestRoutes.post( if (finalSeasons.length === 0) { return next({ - status: 500, + status: 202, message: 'No seasons available to request', }); }