Auto-merge for PR #687 via VersionBot

Bind db handle to fn variable
This commit is contained in:
resin-io-versionbot[bot] 2018-06-28 14:57:20 +00:00 committed by GitHub
commit 40965b9ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -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]

View File

@ -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",

View File

@ -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)
}