Skip to content

Commit

Permalink
chore: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz committed Oct 20, 2024
1 parent 5e92c5e commit de3a9dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions src/types/app-bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ export interface DeleteAppBundleDto {
appId: string;
}

export interface MultipartUploadDto {
key: string;
uploadId: string;
}

export interface UpdateAppBundleDto {
appBundleFileId?: string;
appBundleId: string;
Expand Down
15 changes: 0 additions & 15 deletions src/utils/buffer.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
import { ReadStream } from 'fs';

export const createBufferFromBlob = async (blob: Blob): Promise<Buffer> => {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.onload = () => {
if (reader.result instanceof ArrayBuffer) {
resolve(Buffer.from(reader.result));
} else {
reject(new Error('Failed to convert Blob to Buffer.'));
}
};
reader.onerror = reject;
reader.readAsArrayBuffer(blob);
});
};

export const createBufferFromPath = async (path: string): Promise<Buffer> => {
const fs = await import('fs');
const stream = fs.createReadStream(path);
Expand Down

0 comments on commit de3a9dc

Please sign in to comment.