merge appdb.js into apps.js
This commit is contained in:
@@ -14,8 +14,7 @@ const apps = require('./apps.js'),
|
||||
debug = require('debug')('box:updatechecker'),
|
||||
notifications = require('./notifications.js'),
|
||||
paths = require('./paths.js'),
|
||||
safe = require('safetydance'),
|
||||
util = require('util');
|
||||
safe = require('safetydance');
|
||||
|
||||
function setUpdateInfo(state) {
|
||||
// appid -> update info { creationDate, manifest }
|
||||
@@ -39,9 +38,7 @@ async function checkAppUpdates(options) {
|
||||
let state = getUpdateInfo();
|
||||
let newState = { }; // create new state so that old app ids are removed
|
||||
|
||||
const appsGetAllAsync = util.promisify(apps.getAll);
|
||||
|
||||
const result = await appsGetAllAsync();
|
||||
const result = await apps.list();
|
||||
|
||||
for (const app of result) {
|
||||
if (app.appStoreId === '') continue; // appStoreId can be '' for dev apps
|
||||
|
||||
Reference in New Issue
Block a user