Device Calibration - fixed storage migration

This commit is contained in:
Diogo Trindade committed 2020-12-08 15:30:01 +00:00
1 parent 67451b5867
commit 7826674ec4
1 file changed
+4 -4
@@ -1,4 +1,4 @@
using Artemis.Storage.Migrations.Interfaces; using Artemis.Storage.Migrations.Interfaces;
using LiteDB; using LiteDB;
namespace Artemis.Storage.Migrations namespace Artemis.Storage.Migrations
@@ -15,9 +15,9 @@ namespace Artemis.Storage.Migrations
{ {
foreach (BsonValue bsonDevice in bsonDocument["DeviceEntities"].AsArray) foreach (BsonValue bsonDevice in bsonDocument["DeviceEntities"].AsArray)
{ {
bsonDevice["RedScale"] = 1; bsonDevice["RedScale"] = 1d;
bsonDevice["GreenScale"] = 1; bsonDevice["GreenScale"] = 1d;
bsonDevice["BlueScale"] = 1; bsonDevice["BlueScale"] = 1d;
} }
collection.Update(bsonDocument); collection.Update(bsonDocument);