From 080fdd37742c152590f7b27c99f2ab7c65f14965 Mon Sep 17 00:00:00 2001 From: Cameron Diver Date: Thu, 28 Jun 2018 14:25:06 +0100 Subject: [PATCH 1/2] Bind db handle to fn variable During the conversion to typescript, the behaviour of the database handle changed slightly, meaning storing a reference to the models function also requires a bind to be applied too. Change-type: patch Signed-off-by: Cameron Diver --- src/device-config.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } From 98486717aac1d4be7bce2899efe9304c02bb4a2b Mon Sep 17 00:00:00 2001 From: "resin-io-versionbot[bot]" Date: Thu, 28 Jun 2018 14:18:21 +0000 Subject: [PATCH 2/2] v7.13.1 --- CHANGELOG.md | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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",