Skip to content

Commit

Permalink
helpers/CheckSettings.ts: allow empty default values
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Aug 23, 2024
1 parent 719240c commit cbf86ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/helpers/CheckSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const CheckSettings = async (
}
});

if (!setting && !defaultValue) {
if (!setting && defaultValue === null) {
throw new AppError("ERR_NO_SETTING_FOUND", 404);
}

Expand All @@ -31,7 +31,7 @@ export const GetCompanySetting = async (
}
});

if (!setting && !defaultValue) {
if (!setting && defaultValue === null) {
throw new AppError("ERR_NO_SETTING_FOUND", 404);
}

Expand Down

0 comments on commit cbf86ca

Please sign in to comment.