mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-03-10 22:44:29 +00:00
Use .constructor.prototype
for promisifying instead of __proto__
.
This commit is contained in:
parent
00d725cfac
commit
ffc05f9d84
@ -8,8 +8,8 @@ knex = require './db'
|
||||
|
||||
docker = Promise.promisifyAll(new Docker(socketPath: config.dockerSocket))
|
||||
# Hack dockerode to promisify internal classes' prototypes
|
||||
Promise.promisifyAll(docker.getImage().__proto__)
|
||||
Promise.promisifyAll(docker.getContainer().__proto__)
|
||||
Promise.promisifyAll(docker.getImage().constructor.prototype)
|
||||
Promise.promisifyAll(docker.getContainer().constructor.prototype)
|
||||
|
||||
exports.docker = docker
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user