Merge pull request #1373 from akihikodaki/misc

Implement Follow activity
This commit is contained in:
syuilo 2018-04-02 19:53:04 +09:00 committed by GitHub
commit 4fc04acdc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 5 deletions

View file

@ -2,6 +2,7 @@ import * as mongo from 'mongodb';
import db from '../db/mongodb';
const Following = db.get<IFollowing>('following');
Following.createIndex(['followerId', 'followeeId'], { unique: true });
export default Following;
export type IFollowing = {