RENAME: bbs -> channel
This commit is contained in:
parent
0e95cdb04c
commit
dc9fddf839
8 changed files with 65 additions and 67 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import * as mongo from 'mongodb';
|
||||
import db from '../../db/mongodb';
|
||||
|
||||
const collection = db.get('bbs_threads');
|
||||
const collection = db.get('channels');
|
||||
|
||||
export default collection as any; // fuck type definition
|
||||
|
||||
export type IBbsThread = {
|
||||
export type IChannel = {
|
||||
_id: mongo.ObjectID;
|
||||
created_at: Date;
|
||||
title: string;
|
||||
Loading…
Add table
Add a link
Reference in a new issue