Skip to content

Commit

Permalink
🔨 chore: enable error requests in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Dec 24, 2021
1 parent 2d58d84 commit 5dca621
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const rootDir = __dirname;
port: process.env.PORT_API ? parseInt(process.env.PORT_API) : 8080,
logger: {
debug: true,
level: process.env.NODE_ENV === "production" ? "off" : undefined,
level: process.env.NODE_ENV === "production" ? "off" : "error",
},
mount: {
"/v1": [`${rootDir}/controllers/**/*.ts`],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function DispatchCallTowModal({ call }: Props) {
const INITIAL_VALUES = {
location: call?.location ?? "",
postal: call?.postal ?? "",
// @ts-expect-error ignore
// @ts-expect-error TS should allow this tbh!
creatorId: unit?.citizenId ?? null,
description: call?.description ?? "",
callCountyService: false,
Expand All @@ -71,7 +71,7 @@ export function DispatchCallTowModal({ call }: Props) {
return (
<Modal
onClose={() => closeModal(ModalIds.ManageTowCall)}
title={t("createTowCall")}
title={t("Calls.createTowCall")}
isOpen={isOpen(ModalIds.ManageTowCall)}
className="w-[700px]"
>
Expand All @@ -98,7 +98,7 @@ export function DispatchCallTowModal({ call }: Props) {
<Input name="location" value={values.location} onChange={handleChange} />
</FormField>

<FormField errorMessage={errors.postal} label={t("postal")}>
<FormField errorMessage={errors.postal} label={t("Calls.postal")}>
<Input name="postal" value={values.postal} onChange={handleChange} />
</FormField>
</FormRow>
Expand Down

0 comments on commit 5dca621

Please sign in to comment.