config: Force config values to strings when storing in db

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2018-12-14 15:05:05 +00:00
parent 3ca1d7c864
commit 151af309fb
No known key found for this signature in database
GPG Key ID: 49690ED87032539F

View File

@ -186,7 +186,7 @@ class Config extends EventEmitter {
if (oldValues[key] !== value) {
return this.db.upsertModel(
'config',
{ key, value },
{ key, value: (value || '').toString() },
{ key },
tx,
);