Skip to content

Commit f30a3f0

Browse files
author
Umed Khudoiberdiev
authored
Merge pull request #13 from hieptuanle/patch-1
FIX inaccurate comment for loading posts
2 parents e37225f + d948795 commit f30a3f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controller/PostGetAllAction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export async function postGetAllAction(request: Request, response: Response) {
1010
// get a post repository to perform operations with post
1111
const postRepository = getManager().getRepository(Post);
1212

13-
// load a post by a given post id
13+
// load posts
1414
const posts = await postRepository.find();
1515

1616
// return loaded posts
1717
response.send(posts);
18-
}
18+
}

0 commit comments

Comments
 (0)