diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 13:20:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 13:20:19 +0900 |
| commit | ac12e63a853359b819dfd5df3ef9604a51e27cd4 (patch) | |
| tree | 4cd48e5fd12f52cf01e29dd4c67f26fbae79f115 /src/api | |
| parent | wip (diff) | |
| download | sharkey-ac12e63a853359b819dfd5df3ef9604a51e27cd4.tar.gz sharkey-ac12e63a853359b819dfd5df3ef9604a51e27cd4.tar.bz2 sharkey-ac12e63a853359b819dfd5df3ef9604a51e27cd4.zip | |
wip
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/models/mute.ts | 12 |
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; +} |