mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-06-02 19:16:58 +00:00
13 lines
280 B
TypeScript
13 lines
280 B
TypeScript
import * as mongo from 'mongodb';
|
|
import db from '../../db/mongodb';
|
|
|
|
const collection = db.get('channels');
|
|
|
|
export default collection as any; // fuck type definition
|
|
|
|
export type IChannel = {
|
|
_id: mongo.ObjectID;
|
|
created_at: Date;
|
|
title: string;
|
|
user_id: mongo.ObjectID;
|
|
};
|