1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Device Calibration - fixed storage migration

This commit is contained in:
Diogo Trindade 2020-12-08 15:30:01 +00:00
parent 67451b5867
commit 7826674ec4

View File

@ -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);