mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
Add index
This commit is contained in:
parent
bcad552496
commit
716f3a4505
@ -2,6 +2,7 @@ import * as mongo from 'mongodb';
|
||||
import db from '../db/mongodb';
|
||||
|
||||
const PostWatching = db.get<IPostWatching>('postWatching');
|
||||
PostWatching.createIndex(['userId', 'postId'], { unique: true });
|
||||
export default PostWatching;
|
||||
|
||||
export interface IPostWatching {
|
||||
|
Loading…
Reference in New Issue
Block a user