Skip to content

Commit

Permalink
fix(backend): use updated IS_DEV when creating Collections
Browse files Browse the repository at this point in the history
this was previously using the old path, which resulted in
collections always falling back to their default (prod) values,
rather than using the expected values in dev
  • Loading branch information
tyler-dane committed Jan 1, 2025
1 parent a6cb22e commit c3d40ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/common/constants/collections.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IS_DEV } from "@backend/common/constants/env.constants";
import { IS_DEV } from "./env.constants";

export const Collections = {
CALENDARLIST: IS_DEV ? "_dev.calendarlist" : "calendarlist",
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/common/constants/env.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (!Object.values(NodeEnv).includes(_nodeEnv)) {
throw new Error(`Invalid NODE_ENV value: '${_nodeEnv}'`);
}

const IS_DEV = isDev(_nodeEnv);
export const IS_DEV = isDev(_nodeEnv);

const EnvSchema = z
.object({
Expand Down

0 comments on commit c3d40ab

Please sign in to comment.