fix(striker-ui-api): correct response status code in create ups, fence

main
Tsu-ba-me 2 years ago
parent cdfc179f9f
commit 1665c7efec
  1. 2
      striker-ui-api/src/lib/request_handlers/fence/createFence.ts
  2. 2
      striker-ui-api/src/lib/request_handlers/ups/createUps.ts

@ -132,7 +132,7 @@ export const createFence: RequestHandler<
return response.status(500).send(); return response.status(500).send();
} }
const scode = rUuid ? 201 : 200; const scode = rUuid ? 200 : 201;
return response.status(scode).send(); return response.status(scode).send();
}; };

@ -80,7 +80,7 @@ export const createUps: RequestHandler<
return response.status(500).send(); return response.status(500).send();
} }
const scode = rUuid ? 201 : 200; const scode = rUuid ? 200 : 201;
return response.status(scode).send(); return response.status(scode).send();
}; };

Loading…
Cancel
Save