From 9bf19d4676937bafb61da2f8e953ad2814e89e61 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 3 Apr 2018 01:37:11 +0900 Subject: Revert "[wip] Implement like activity" This reverts commit 7da191396469642de14655c30eba86926882e98c. --- src/models/post-reaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/models') diff --git a/src/models/post-reaction.ts b/src/models/post-reaction.ts index 81be95b8d8..3fc33411fb 100644 --- a/src/models/post-reaction.ts +++ b/src/models/post-reaction.ts @@ -5,12 +5,12 @@ import Reaction from './post-reaction'; import { pack as packUser } from './user'; const PostReaction = db.get('postReactions'); -PostReaction.createIndex(['userId', 'postId'], { unique: true }); export default PostReaction; export interface IPostReaction { _id: mongo.ObjectID; createdAt: Date; + deletedAt: Date; postId: mongo.ObjectID; userId: mongo.ObjectID; reaction: string; -- cgit v1.2.3-freya