mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-16 12:46:42 +01:00
14 lines
285 B
TypeScript
14 lines
285 B
TypeScript
|
import * as mongo from 'mongodb';
|
||
|
import db from '../../db/mongodb';
|
||
|
|
||
|
const collection = db.get('bbs_threads');
|
||
|
|
||
|
export default collection as any; // fuck type definition
|
||
|
|
||
|
export type IBbsThread = {
|
||
|
_id: mongo.ObjectID;
|
||
|
created_at: Date;
|
||
|
title: string;
|
||
|
user_id: mongo.ObjectID;
|
||
|
};
|