mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 04:59:06 +01:00
14 lines
280 B
TypeScript
14 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;
|
|
};
|