ログをデータベースに保存して管理画面で見れるように
This commit is contained in:
parent
f3ceb32a7c
commit
977af0a24d
29 changed files with 326 additions and 99 deletions
|
|
@ -1,9 +1,10 @@
|
|||
import * as mongo from 'mongodb';
|
||||
import * as deepcopy from 'deepcopy';
|
||||
import db, { dbLogger } from '../db/mongodb';
|
||||
import db from '../db/mongodb';
|
||||
import isObjectId from '../misc/is-objectid';
|
||||
import { IUser, pack as packUser } from './user';
|
||||
import { pack as packNote } from './note';
|
||||
import { dbLogger } from '../db/logger';
|
||||
|
||||
const Notification = db.get<INotification>('notifications');
|
||||
Notification.createIndex('notifieeId');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue