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 -1
View File
@@ -18,6 +18,7 @@ const apps = require('./apps.js'),
safe = require('safetydance'),
shell = require('./shell.js'),
system = require('./system.js'),
util = require('util'),
volumes = require('./volumes.js');
function rebuild(serviceConfig, options, callback) {
@@ -41,7 +42,7 @@ function rebuild(serviceConfig, options, callback) {
dataDirs.push({ hostDir: resolvedAppDataDir, mountDir: '/mnt/appsdata' });
apps.getAll(async function (error, result) {
util.callbackify(apps.list)(async function (error, result) {
if (error) return callback(error);
result.forEach(function (app) {