Skip to content

Commit

Permalink
Feat: update Post type
Browse files Browse the repository at this point in the history
  • Loading branch information
utkusarioglu committed Feb 5, 2021
1 parent 5079787 commit 8988c02
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/references/post.reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ interface Post {

/** comment related properties */
commentCount: number;
uniqueCommenterCount: number;

/** community related properties */
communitySlug: string;
communityName: string;

/** Post creator related */
postCreatorUsername: string;
creatorUsername: string;

/** media related properties */
mediaImagePath: string; // uri
Expand All @@ -41,12 +40,7 @@ interface Post {
*/
export type PostSqlAutoSave = Pick<
Post,
| 'id'
| 'createdAt'
| 'likeCount'
| 'dislikeCount'
| 'commentCount'
| 'uniqueCommenterCount'
'id' | 'createdAt' | 'likeCount' | 'dislikeCount' | 'commentCount'
>;

/**
Expand Down

0 comments on commit 8988c02

Please sign in to comment.