Add type field to port bindings table

Part of #504
This commit is contained in:
Girish Ramakrishnan
2018-08-12 22:08:19 -07:00
parent df1dc80fc1
commit 60984d18dd
6 changed files with 48 additions and 24 deletions

View File

@@ -677,7 +677,7 @@ function update(app, callback) {
async.each(Object.keys(currentPorts), function (portName, callback) {
if (newPorts[portName]) return callback(); // port still in use
appdb.delPortBinding(currentPorts[portName], function (error) {
appdb.delPortBinding(currentPorts[portName], apps.PORT_TYPE_TCP, function (error) {
if (error && error.reason === DatabaseError.NOT_FOUND) console.error('Portbinding does not exist in database.');
else if (error) return next(error);