mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: make use of promise.all
This commit is contained in:
@@ -57,13 +57,11 @@
|
||||
);
|
||||
|
||||
if ($templateConfig.variables) {
|
||||
for (const [key, value] of Object.entries($templateConfig.variables)) {
|
||||
await sdk.forProject.functions.createVariable(
|
||||
response.$id,
|
||||
key,
|
||||
value?.toString()
|
||||
);
|
||||
}
|
||||
const promises = Object.entries($templateConfig.variables).map(([key, value]) =>
|
||||
sdk.forProject.functions.createVariable(response.$id, key, value?.toString())
|
||||
);
|
||||
|
||||
await Promise.all(promises);
|
||||
}
|
||||
|
||||
goto(
|
||||
|
||||
Reference in New Issue
Block a user