diff --git a/README.md b/README.md index dc946cb..521ba63 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,4 @@ appwrite init function | Java | 8.0 | 11.0 | 17.0 | 18.0 | | | Kotlin | 1.6 | 1.8 | | | | | .NET | 6.0 | 7.0 | | | | +| Bun | 1.0 | | | | | diff --git a/bun-1.0/src/main.ts b/bun-1.0/src/main.ts index 82dd0c1..d25c352 100644 --- a/bun-1.0/src/main.ts +++ b/bun-1.0/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() // .setEndpoint('https://cloud.appwrite.io/v1') diff --git a/deno-1.21/src/main.ts b/deno-1.21/src/main.ts index 4934522..68ab01f 100644 --- a/deno-1.21/src/main.ts +++ b/deno-1.21/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() // .setEndpoint('https://cloud.appwrite.io/v1') diff --git a/deno-1.24/src/main.ts b/deno-1.24/src/main.ts index 4934522..68ab01f 100644 --- a/deno-1.24/src/main.ts +++ b/deno-1.24/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() // .setEndpoint('https://cloud.appwrite.io/v1') diff --git a/deno-1.35/src/main.ts b/deno-1.35/src/main.ts index 4934522..68ab01f 100644 --- a/deno-1.35/src/main.ts +++ b/deno-1.35/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() // .setEndpoint('https://cloud.appwrite.io/v1')