5ce6fa67d2
and use createdAt instead of _id
13 lines
257 B
TypeScript
13 lines
257 B
TypeScript
import { ObjectID } from 'mongodb';
|
|
import db from '../db/mongodb';
|
|
|
|
const FollowedLog = db.get<IFollowedLog>('followedLogs');
|
|
export default FollowedLog;
|
|
|
|
export type IFollowedLog = {
|
|
_id: ObjectID;
|
|
createdAt: Date;
|
|
userId: ObjectID;
|
|
count: number;
|
|
};
|