Skip to content

Commit

Permalink
fix: err build backend
Browse files Browse the repository at this point in the history
  • Loading branch information
bakaqc committed Dec 29, 2024
1 parent d0805ad commit 656f8ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/domains/upload/upload.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { cloudinary } from '@/domains/upload/config/cloudinary.config';
export class UploadService {
private readonly logger = new Logger(UploadService.name);

async uploadImage(file: Express.Multer.File) {
async uploadImage(file: Express.Multer.File): Promise<any> {
try {
const result = await new Promise((resolve, reject) => {
const uploadStream = cloudinary.uploader.upload_stream(
Expand All @@ -16,7 +16,6 @@ export class UploadService {
const err = new Error(
`Error uploading image to Cloudinary: ${error.message}`,
);

this.logger.error(err.message, error.stack);
reject(err);
} else {
Expand Down

0 comments on commit 656f8ec

Please sign in to comment.