Skip to content

Commit 22af592

Browse files
Update environmentVariablesRepository.server.ts
1 parent be7790b commit 22af592

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/webapp/app/v3/environmentVariables/environmentVariablesRepository.server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ export class EnvironmentVariablesRepository implements Repository {
135135
}
136136

137137
try {
138+
for (const variable of values) {
138139
const result = await $transaction(this.prismaClient, async (tx) => {
139-
for (const variable of values) {
140140
const environmentVariable = await tx.environmentVariable.upsert({
141141
where: {
142142
projectId_key: {
@@ -195,8 +195,8 @@ export class EnvironmentVariablesRepository implements Repository {
195195
secret: variable.value,
196196
});
197197
}
198-
}
199-
});
198+
});
199+
}
200200

201201
return {
202202
success: true as const,

0 commit comments

Comments
 (0)