More use of isProduction/isDevelopment getters

This commit is contained in:
Tom Moor
2023-11-09 09:32:46 -05:00
parent 1ace76eb44
commit 0964d03a17
16 changed files with 22 additions and 28 deletions

View File

@@ -19,7 +19,7 @@ import { safeEqual } from "@server/utils/crypto";
import * as T from "./schema";
const router = new Router();
const emailEnabled = !!(env.SMTP_HOST || env.ENVIRONMENT === "development");
const emailEnabled = !!(env.SMTP_HOST || env.isDevelopment);
const handleTeamUpdate = async (ctx: APIContext<T.TeamsUpdateSchemaReq>) => {
const { transaction } = ctx.state;