mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-21 10:01:55 +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) {
|
||||
return this.db.upsertModel(
|
||||
'config',
|
||||
{ key, value },
|
||||
{ key, value: (value || '').toString() },
|
||||
{ key },
|
||||
tx,
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user