From 8602cbdea15c027678ec93836cb571788c07201d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 13 Sep 2023 16:02:21 +0200 Subject: [PATCH] Make starters async --- bun/starter/src/main.ts | 2 +- deno/starter/src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()