summaryrefslogtreecommitdiff
path: root/src/api/models/mute.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 13:20:19 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 13:20:19 +0900
commitac12e63a853359b819dfd5df3ef9604a51e27cd4 (patch)
tree4cd48e5fd12f52cf01e29dd4c67f26fbae79f115 /src/api/models/mute.ts
parentwip (diff)
downloadsharkey-ac12e63a853359b819dfd5df3ef9604a51e27cd4.tar.gz
sharkey-ac12e63a853359b819dfd5df3ef9604a51e27cd4.tar.bz2
sharkey-ac12e63a853359b819dfd5df3ef9604a51e27cd4.zip
wip
Diffstat (limited to 'src/api/models/mute.ts')
-rw-r--r--src/api/models/mute.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/api/models/mute.ts b/src/api/models/mute.ts
index 16018b82f7..fdc8cc714b 100644
--- a/src/api/models/mute.ts
+++ b/src/api/models/mute.ts
@@ -1,3 +1,13 @@
+import * as mongo from 'mongodb';
import db from '../../db/mongodb';
-export default db.get('mute') as any; // fuck type definition
+const Mute = db.get<IMute>('mute');
+export default Mute;
+
+export interface IMute {
+ _id: mongo.ObjectID;
+ createdAt: Date;
+ deletedAt: Date;
+ muterId: mongo.ObjectID;
+ muteeId: mongo.ObjectID;
+}