diff --git a/src/lib/components/filters/filters.svelte b/src/lib/components/filters/filters.svelte
index 4eba0cbca..cae6f2878 100644
--- a/src/lib/components/filters/filters.svelte
+++ b/src/lib/components/filters/filters.svelte
@@ -98,8 +98,6 @@
function toggleMobileModal() {
showFiltersMobile = !showFiltersMobile;
}
-
- $: console.log(selectedColumn, operatorKey, value, arrayValues);
diff --git a/src/lib/sdk/functions.ts b/src/lib/sdk/functions.ts
new file mode 100644
index 000000000..df494e54e
--- /dev/null
+++ b/src/lib/sdk/functions.ts
@@ -0,0 +1,26 @@
+import type { Client } from '@appwrite.io/console';
+
+export class Func {
+ client: Client;
+
+ constructor(client: Client) {
+ this.client = client;
+ }
+
+ async downloadDeployment(functionId: string, deploymentId: string): Promise
{
+ const path = `/functions/${functionId}/deployments/${deploymentId}/download`;
+ const params = {
+ functionId,
+ deploymentId
+ };
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call(
+ 'GET',
+ uri,
+ {
+ 'content-type': 'application/json'
+ },
+ params
+ );
+ }
+}
diff --git a/src/lib/stores/sdk.ts b/src/lib/stores/sdk.ts
index 8dacdc079..a3e31c050 100644
--- a/src/lib/stores/sdk.ts
+++ b/src/lib/stores/sdk.ts
@@ -23,6 +23,7 @@ import {
} from '@appwrite.io/console';
import { Billing } from '../sdk/billing';
import { Sources } from '$lib/sdk/sources';
+import { Func } from '$lib/sdk/functions';
const endpoint = VARS.APPWRITE_ENDPOINT ?? `${globalThis?.location?.origin}/v1`;
@@ -74,7 +75,8 @@ export const sdk = {
console: new Console(clientConsole),
assistant: new Assistant(clientConsole),
billing: new Billing(clientConsole),
- sources: new Sources(clientConsole)
+ sources: new Sources(clientConsole),
+ func: new Func(clientConsole)
},
get forProject() {
const projectId = getProjectId();
diff --git a/src/routes/console/project-[project]/auth/security/updateMockNumbers.svelte b/src/routes/console/project-[project]/auth/security/updateMockNumbers.svelte
index 353783dbc..faf065fc1 100644
--- a/src/routes/console/project-[project]/auth/security/updateMockNumbers.svelte
+++ b/src/routes/console/project-[project]/auth/security/updateMockNumbers.svelte
@@ -48,8 +48,6 @@
numbers.splice(index, 1);
numbers = numbers;
}
-
- $: console.log(numbers, initialNumbers);