move owners store out to own object
This commit is contained in:
parent
c7627faffd
commit
f2b05ee7af
14
lib/app.js
14
lib/app.js
|
@ -55,11 +55,7 @@ module.exports = function (deps, conf, overrideHttp) {
|
|||
var scmp = require('scmp');
|
||||
request = request || PromiseA.promisify(require('request'));
|
||||
|
||||
return require('../packages/apis/com.daplie.goldilocks').create({
|
||||
PromiseA: PromiseA
|
||||
, OAUTH3: OAUTH3
|
||||
, storage: {
|
||||
owners: {
|
||||
var owners = {
|
||||
all: function () {
|
||||
var owners;
|
||||
try {
|
||||
|
@ -102,7 +98,13 @@ module.exports = function (deps, conf, overrideHttp) {
|
|||
|
||||
return fs.writeFileAsync(ownersPath, JSON.stringify(owners), 'utf8');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return require('../packages/apis/com.daplie.goldilocks').create({
|
||||
PromiseA: PromiseA
|
||||
, OAUTH3: OAUTH3
|
||||
, storage: {
|
||||
owners: owners
|
||||
}
|
||||
, recase: require('recase').create({})
|
||||
, request: request
|
||||
|
|
Loading…
Reference in New Issue