5ce6fa67d2
and use createdAt instead of _id
12 lines
262 B
TypeScript
12 lines
262 B
TypeScript
import { ObjectID } from 'mongodb';
|
|
import db from '../db/mongodb';
|
|
|
|
const FollowingLog = db.get<IFollowingLog>('followingLogs');
|
|
export default FollowingLog;
|
|
|
|
export type IFollowingLog = {
|
|
_id: ObjectID;
|
|
createdAt: Date;
|
|
userId: ObjectID;
|
|
count: number;
|
|
};
|