fix: types

This commit is contained in:
Arman
2022-09-29 16:52:55 +02:00
parent 6a9a238039
commit 2bca4ee2bf
3 changed files with 7 additions and 4 deletions
@@ -21,11 +21,14 @@
$createFunction.name,
$createFunction.execute,
$createFunction.runtime,
$createFunction.vars,
$createFunction.events,
$createFunction.schedule,
$createFunction.timeout
);
$createFunction.vars.forEach(
async (v) =>
await sdkForProject.functions.createVariable($createFunction.id, v.key, v.value)
);
addNotification({
message: 'Function has been created',
type: 'success'
@@ -63,8 +63,8 @@
</Pill>
</TableCellText>
<TableCellText title="Type">{execution.trigger}</TableCellText>
<TableCellText title="Build Time">
{calculateTime(execution.time)}</TableCellText>
<TableCellText title="Duration">
{calculateTime(execution.duration)}</TableCellText>
</TableRow>
{/each}
</TableBody>
@@ -107,7 +107,7 @@
});
}
}
async function handleVariableDeleted(variableId) {
async function handleVariableDeleted(variableId: string) {
try {
await variableList.delete(functionId, variableId);
addNotification({