diff --git a/CHANGELOG.md b/CHANGELOG.md index 241f1076..9b6db727 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY! This project adheres to [Semantic Versioning](http://semver.org/). +## v7.13.1 - 2018-06-28 + +* Bind db handle to fn variable #687 [Cameron Diver] + ## v7.13.0 - 2018-06-27 * Change config function providers to be mutable #684 [Cameron Diver] diff --git a/package.json b/package.json index 0cc40603..18715113 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "resin-supervisor", "description": "This is resin.io's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as Resin's API informs it to.", - "version": "7.13.0", + "version": "7.13.1", "license": "Apache-2.0", "repository": { "type": "git", diff --git a/src/device-config.coffee b/src/device-config.coffee index b31133be..8cdb0c2a 100644 --- a/src/device-config.coffee +++ b/src/device-config.coffee @@ -61,7 +61,7 @@ module.exports = class DeviceConfig return @configBackend setTarget: (target, trx) => - db = trx ? @db.models + db = trx ? @db.models.bind(@db) confToUpdate = { targetValues: JSON.stringify(target) }