Skip to content

Commit

Permalink
Merge pull request #101 from boostcampwm2023/BE-MergeConflict-#100
Browse files Browse the repository at this point in the history
[BE] Merge Conflict 해결
  • Loading branch information
koomin1227 authored Nov 21, 2023
2 parents 50d983c + 4abd9e6 commit c134a93
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions BE/src/post/post.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ export class PostService {
async changeImages(postId: number, images: string[]) {
try {
await this.postImageRepository.delete({ post_id: postId });
images.forEach(async (image) => {
for (const img of images) {
await this.postImageRepository.save({
post_id: postId,
image_url: image,
image_url: img,
});
});
}
} catch {
throw new HttpException('서버 오류입니다.', 500);
}
Expand Down Expand Up @@ -102,7 +102,8 @@ export class PostService {
}
} catch {
return null;

}
}
async uploadImages(files: Express.Multer.File[]): Promise<string[]> {
const fileLocation: Array<string> = [];
for (const file of files) {
Expand Down

0 comments on commit c134a93

Please sign in to comment.