Skip to content

Commit 78b9b92

Browse files
committed
Stop shadowing the flag function
1 parent 069415e commit 78b9b92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/webapp/app/v3/eventRepository/index.server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,21 +122,21 @@ export async function getV3EventRepository(
122122
async function resolveTaskEventRepositoryFlag(
123123
featureFlags: Record<string, unknown> | undefined
124124
): Promise<"clickhouse" | "clickhouse_v2" | "postgres"> {
125-
const flag = await flag({
125+
const flagResult = await flag({
126126
key: FEATURE_FLAG.taskEventRepository,
127127
defaultValue: env.EVENT_REPOSITORY_DEFAULT_STORE,
128128
overrides: featureFlags,
129129
});
130130

131-
if (flag === "clickhouse_v2") {
131+
if (flagResult === "clickhouse_v2") {
132132
return "clickhouse_v2";
133133
}
134134

135-
if (flag === "clickhouse") {
135+
if (flagResult === "clickhouse") {
136136
return "clickhouse";
137137
}
138138

139-
return flag;
139+
return flagResult;
140140
}
141141

142142
export async function recordRunDebugLog(

0 commit comments

Comments
 (0)