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:
parent
67451b5867
commit
7826674ec4
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user