mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 20:49:06 +01:00
6a3cd68423
and use createdAt instead of _id
13 lines
262 B
TypeScript
13 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;
|
|
};
|