Skip to content

Commit

Permalink
Restyled by whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed May 5, 2023
1 parent 437777f commit c5723e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/src/posts/posts.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class PostsController {
storage: diskStorage({
destination: './uploads',
filename: editFileName,

}),
limits : {
fileSize: 8000000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class AddPostPageComponent implements OnInit {
for(var i = 0; i < this.files!.length; i++) {
formData.append('files' , this.files?.item(i))
}

formData.append('title', this.postFormControl.get('title')!.value);
formData.append('content', this.postFormControl.get('content')!.value);
this.postService.addNewPost(formData).subscribe({
Expand All @@ -68,6 +68,6 @@ export class AddPostPageComponent implements OnInit {
},
});
}

}
}

0 comments on commit c5723e9

Please sign in to comment.