mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-24 21:09:47 +00:00
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:
parent
3ca1d7c864
commit
151af309fb
@ -186,7 +186,7 @@ class Config extends EventEmitter {
|
|||||||
if (oldValues[key] !== value) {
|
if (oldValues[key] !== value) {
|
||||||
return this.db.upsertModel(
|
return this.db.upsertModel(
|
||||||
'config',
|
'config',
|
||||||
{ key, value },
|
{ key, value: (value || '').toString() },
|
||||||
{ key },
|
{ key },
|
||||||
tx,
|
tx,
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user