wip
This commit is contained in:
parent
7310435584
commit
ac12e63a85
@ -1,3 +1,13 @@
|
|||||||
|
import * as mongo from 'mongodb';
|
||||||
import db from '../../db/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;
|
||||||
|
}
|
||||||
|
@ -101,3 +101,12 @@ db.messagingMessages.update({}, {
|
|||||||
}
|
}
|
||||||
}, false, true);
|
}, false, true);
|
||||||
|
|
||||||
|
db.mute.update({}, {
|
||||||
|
$rename: {
|
||||||
|
created_at: 'createdAt',
|
||||||
|
deleted_at: 'deletedAt',
|
||||||
|
mutee_id: 'muteeId',
|
||||||
|
muter_id: 'muterId',
|
||||||
|
}
|
||||||
|
}, false, true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user