Skip to content

Commit

Permalink
Feat: add userId to CommentSaveReq
Browse files Browse the repository at this point in the history
  • Loading branch information
utkusarioglu committed Feb 5, 2021
1 parent 8988c02 commit 281cd09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/references/comment.reference.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { PostGetRes } from '../endpoints/post.endpoint';
import { UserGetRes } from '../endpoints/user.endpoint';

/**
* Complete comment object
Expand Down Expand Up @@ -38,4 +39,5 @@ export type CommentSaveReq = {
// gets the post id from prior request for the post content,
// which is sent through PostGetRes
postId: PostGetRes['id'];
userId: UserGetRes['id'];
} & CommentSave;

0 comments on commit 281cd09

Please sign in to comment.