mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: types
This commit is contained in:
@@ -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'
|
||||
|
||||
+2
-2
@@ -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>
|
||||
|
||||
+1
-1
@@ -107,7 +107,7 @@
|
||||
});
|
||||
}
|
||||
}
|
||||
async function handleVariableDeleted(variableId) {
|
||||
async function handleVariableDeleted(variableId: string) {
|
||||
try {
|
||||
await variableList.delete(functionId, variableId);
|
||||
addNotification({
|
||||
|
||||
Reference in New Issue
Block a user