Skip to content
Snippets Groups Projects
Commit ece7d3b4 authored by Matt Kirby's avatar Matt Kirby
Browse files

fixed comment route

parent 85ac118e
Branches CS2
No related tags found
1 merge request!27ALL Requirements done!!
......@@ -45,7 +45,7 @@ class CommentDataStore extends DataStore<any> {
jwtAuthorId: string,
commentId: string
): Promise<void> => {
const comment = await this.Model.findById({ commentId });
const comment = await this.Model.findById(commentId);
if (comment.AuthorId !== jwtAuthorId) {
throw new Error("Unauthorised");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment