1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-23 22:56:53 +09:00
This commit is contained in:
syuilo 2017-01-17 09:17:52 +09:00
parent 6dbb4c208e
commit 10ca73489f
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 serialize from '../serializers/drive-file';
import event from '../event';
import config from '../../conf';
/**
* Add file to drive

View File

@ -1,5 +1,6 @@
import * as mongo from 'mongodb';
import * as redis from 'redis';
import config from '../conf';
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 serialize from '../serializers/signin';
import event from '../event';
import config from '../../conf';
export default async (req: express.Request, res: express.Response) => {
res.header('Access-Control-Allow-Credentials', 'true');

View File

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

View File

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

View File

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

View File

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