From bf9ffc07b771eaacb0d371b2567a3dbc3cdd62a8 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Thu, 28 Apr 2022 16:48:19 +0200 Subject: [PATCH] Fix functions init --- .setup/data/functions.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.setup/data/functions.ts b/.setup/data/functions.ts index 63d13fa..d682d83 100644 --- a/.setup/data/functions.ts +++ b/.setup/data/functions.ts @@ -22,7 +22,6 @@ export default () => { execute: ["role:all"], name: "Finish Share", runtime: "node-16.0", - deployment: "625db8ded97874b96590", vars: { APPWRITE_FUNCTION_ENDPOINT: host, APPWRITE_FUNCTION_API_KEY: process.env["APPWRITE_FUNCTION_API_KEY"], @@ -33,11 +32,13 @@ export default () => { }, { $id: "cleanShares", + execute: [], name: "Clean Shares", runtime: "node-16.0", - path: "functions/cleanShares", - entrypoint: "src/index.js", - execute: ["role:all"], + vars: { + APPWRITE_FUNCTION_ENDPOINT: host, + APPWRITE_FUNCTION_API_KEY: process.env["APPWRITE_FUNCTION_API_KEY"], + }, events: [], schedule: "30,59 * * * *", timeout: 60,