mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Fix bug
This commit is contained in:
parent
ebdbb8b4be
commit
1889979fd5
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 serialize from '../serializers/drive-file';
|
||||
import event from '../event';
|
||||
import config from '../../conf';
|
||||
|
||||
/**
|
||||
* Add file to drive
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import * as mongo from 'mongodb';
|
||||
import * as redis from 'redis';
|
||||
import config from '../conf';
|
||||
|
||||
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 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');
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue