Removing ng-di on the server.
This commit is contained in:
parent
ddb2f47a9d
commit
8697d79ba5
37 changed files with 2838 additions and 2878 deletions
server/db
|
@ -5,7 +5,7 @@ const fs = require('graceful-fs');
|
|||
const glob = util.promisify(require('glob'));
|
||||
const path = require('path');
|
||||
|
||||
const config = require('../config');
|
||||
const config = require('../config').config;
|
||||
const Logger = require('../logger');
|
||||
|
||||
async function applyPatch(db, file) {
|
||||
|
@ -72,10 +72,7 @@ async function init() {
|
|||
throw error;
|
||||
}
|
||||
|
||||
// WARNING: We have to use funtion() syntax here, to satisfy ng-di. m(
|
||||
return angular.module('ffffng').factory('Database', function () {
|
||||
return db;
|
||||
});
|
||||
module.exports.db = db;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue