Fix bug
This commit is contained in:
parent
6dbb4c208e
commit
10ca73489f
8 changed files with 10 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
export default global.db.collection('notifications');
|
import db from '../../db/mongodb';
|
||||||
|
|
||||||
|
export default db.collection('notifications');
|
||||||
|
|
|
@ -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');
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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';
|
||||||
|
|
Loading…
Reference in a new issue