Skip to content

Commit d948795

Browse files
authored
FIX inaccurate comment for loading posts
1 parent e37225f commit d948795

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)