diff --git a/src/appwrite/Functions.ts b/src/appwrite/Functions.ts index 1bd8ce9..78bbf94 100644 --- a/src/appwrite/Functions.ts +++ b/src/appwrite/Functions.ts @@ -1,7 +1,8 @@ import { Client, Execution, ExecutionList, FunctionsClient, FunctionsList, Tag, TagList, Vars } from "../appwrite"; import { AppwriteSDK } from '../constants'; import AppwriteCall from '../utils/AppwriteCall'; -import { ReadStream } from 'node:fs'; +import * as fs from 'fs'; +import { ReadStream } from 'fs'; export class Functions { public readonly functions: FunctionsClient; diff --git a/src/appwrite/Storage.ts b/src/appwrite/Storage.ts index a27dd4f..2a3147e 100644 --- a/src/appwrite/Storage.ts +++ b/src/appwrite/Storage.ts @@ -1,4 +1,5 @@ -import { ReadStream } from 'node:fs'; +import * as fs from 'fs'; +import { ReadStream } from 'fs'; import { Client, FilesList, StorageClient } from "../appwrite"; import { AppwriteSDK } from '../constants'; import AppwriteCall from "../utils/AppwriteCall";