- Update Timeout
+ Timeout
Limit the execution time of your function. Maximum value is 900 seconds (15
minutes).
diff --git a/src/routes/console/project-[project]/functions/function-[function]/settings/+page.ts b/src/routes/console/project-[project]/functions/function-[function]/settings/+page.ts
index 897dbb0586..803c98e163 100644
--- a/src/routes/console/project-[project]/functions/function-[function]/settings/+page.ts
+++ b/src/routes/console/project-[project]/functions/function-[function]/settings/+page.ts
@@ -1,12 +1,11 @@
-import { sdkForProject } from '$lib/stores/sdk';
+import { sdk } from '$lib/stores/sdk';
import { Dependencies } from '$lib/constants';
import type { PageLoad } from './$types';
-export const load: PageLoad = async ({ params, parent, depends }) => {
- await parent();
+export const load: PageLoad = async ({ params, depends }) => {
depends(Dependencies.VARIABLES);
return {
- variables: await sdkForProject.functions.listVariables(params.function)
+ variables: await sdk.forProject.functions.listVariables(params.function)
};
};
diff --git a/src/routes/console/project-[project]/functions/function-[function]/settings/delete.svelte b/src/routes/console/project-[project]/functions/function-[function]/settings/delete.svelte
index 9771c45929..b4151270c2 100644
--- a/src/routes/console/project-[project]/functions/function-[function]/settings/delete.svelte
+++ b/src/routes/console/project-[project]/functions/function-[function]/settings/delete.svelte
@@ -6,14 +6,14 @@
import { Modal } from '$lib/components';
import { Button } from '$lib/elements/forms';
import { addNotification } from '$lib/stores/notifications';
- import { sdkForProject } from '$lib/stores/sdk';
+ import { sdk } from '$lib/stores/sdk';
export let showDelete = false;
const functionId = $page.params.function;
const handleSubmit = async () => {
try {
- await sdkForProject.functions.delete(functionId);
+ await sdk.forProject.functions.delete(functionId);
showDelete = false;
addNotification({
type: 'success',
@@ -31,7 +31,7 @@
};
-
+
Delete Function
Are you sure you want to delete this function and all associated deployments from your
diff --git a/src/routes/console/project-[project]/functions/function-[function]/settings/updateEvents.svelte b/src/routes/console/project-[project]/functions/function-[function]/settings/updateEvents.svelte
index 8e325d0852..6975bcb026 100644
--- a/src/routes/console/project-[project]/functions/function-[function]/settings/updateEvents.svelte
+++ b/src/routes/console/project-[project]/functions/function-[function]/settings/updateEvents.svelte
@@ -12,7 +12,7 @@
import TableList from '$lib/elements/table/tableList.svelte';
import { symmetricDifference } from '$lib/helpers/array';
import { addNotification } from '$lib/stores/notifications';
- import { sdkForProject } from '$lib/stores/sdk';
+ import { sdk } from '$lib/stores/sdk';
import { writable, type Writable } from 'svelte/store';
import { func } from '../store';
import { EventModal } from '$lib/components';
@@ -29,7 +29,7 @@
async function updateEvents() {
try {
- await sdkForProject.functions.update(
+ await sdk.forProject.functions.update(
functionId,
$func.name,
$func.execute,
@@ -76,9 +76,9 @@
}
-
-