This commit is contained in:
syuilo 2017-01-17 09:17:52 +09:00
parent ebdbb8b4be
commit 1889979fd5
8 changed files with 10 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import DriveFile from '../models/drive-file';
import DriveFolder from '../models/drive-folder'; import DriveFolder from '../models/drive-folder';
import serialize from '../serializers/drive-file'; import serialize from '../serializers/drive-file';
import event from '../event'; import event from '../event';
import config from '../../conf';
/** /**
* Add file to drive * Add file to drive

View File

@ -1,5 +1,6 @@
import * as mongo from 'mongodb'; import * as mongo from 'mongodb';
import * as redis from 'redis'; import * as redis from 'redis';
import config from '../conf';
type ID = string | mongo.ObjectID; type ID = string | mongo.ObjectID;

View File

@ -1 +1,3 @@
export default global.db.collection('notifications'); import db from '../../db/mongodb';
export default db.collection('notifications');

View File

@ -4,6 +4,7 @@ import User from '../models/user';
import Signin from '../models/signin'; import Signin from '../models/signin';
import serialize from '../serializers/signin'; import serialize from '../serializers/signin';
import event from '../event'; import event from '../event';
import config from '../../conf';
export default async (req: express.Request, res: express.Response) => { export default async (req: express.Request, res: express.Response) => {
res.header('Access-Control-Allow-Credentials', 'true'); res.header('Access-Control-Allow-Credentials', 'true');

View File

@ -8,6 +8,7 @@ import deepcopy = require('deepcopy');
import App from '../models/app'; import App from '../models/app';
import User from '../models/user'; import User from '../models/user';
import AccessToken from '../models/access-token'; import AccessToken from '../models/access-token';
import config from '../../conf';
/** /**
* Serialize an app * Serialize an app

View File

@ -7,6 +7,7 @@ import * as mongo from 'mongodb';
import DriveFile from '../models/drive-file'; import DriveFile from '../models/drive-file';
import serializeDriveTag from './drive-tag'; import serializeDriveTag from './drive-tag';
import deepcopy = require('deepcopy'); import deepcopy = require('deepcopy');
import config from '../../conf';
/** /**
* Serialize a drive file * Serialize a drive file

View File

@ -8,6 +8,7 @@ import deepcopy = require('deepcopy');
import User from '../models/user'; import User from '../models/user';
import Following from '../models/following'; import Following from '../models/following';
import getFriends from '../common/get-friends'; import getFriends from '../common/get-friends';
import config from '../../conf';
/** /**
* Serialize a user * Serialize a user

View File

@ -1,6 +1,7 @@
import * as http from 'http'; import * as http from 'http';
import * as websocket from 'websocket'; import * as websocket from 'websocket';
import * as redis from 'redis'; import * as redis from 'redis';
import config from '../conf';
import User from './models/user'; import User from './models/user';
import AccessToken from './models/access-token'; import AccessToken from './models/access-token';
import isNativeToken from './common/is-native-token'; import isNativeToken from './common/is-native-token';