merge appdb.js into apps.js

This commit is contained in:
Girish Ramakrishnan
2021-08-20 09:19:44 -07:00
parent b6f2d6d620
commit 77f5cb183b
39 changed files with 1599 additions and 2495 deletions
+2 -5
View File
@@ -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