diff --git a/bun/starter/src/main.ts b/bun/starter/src/main.ts index 04485b77..9f4bcfc0 100644 --- a/bun/starter/src/main.ts +++ b/bun/starter/src/main.ts @@ -2,7 +2,7 @@ import { Client } from 'node-appwrite'; // This is your Appwrite function // It's executed each time we get a request -export default ({ req, res, log, error }: any) => { +export default async ({ req, res, log, error }: any) => { // Why not try the Appwrite SDK? // // const client = new Client() diff --git a/deno/starter/src/main.ts b/deno/starter/src/main.ts index b7bdcb48..ca29214d 100644 --- a/deno/starter/src/main.ts +++ b/deno/starter/src/main.ts @@ -2,7 +2,7 @@ import { Client } from "https://deno.land/x/appwrite@7.0.0/mod.ts"; // This is your Appwrite function // It's executed each time we get a request -export default ({ req, res, log, error }: any) => { +export default async ({ req, res, log, error }: any) => { // Why not try the Appwrite SDK? // // const client = new Client()