Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
aevien committed Jun 21, 2024
1 parent 78f3319 commit 009beab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class AccountInfoMongoDB : IAccountInfoData

public AccountInfoMongoDB()
{
Id = Mst.Helper.CreateID_10();
Id = Mst.Helper.CreateGuidString();
Username = string.Empty;
Password = string.Empty;
Email = string.Empty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ public class ProfilesDatabaseAccessorFactory : DatabaseAccessorFactory

[Header("Components"), SerializeField]
private MongoDbClientFactory mongoDbClientFactory;
[SerializeField] private bool saveDataAsBytes;

#endregion

Expand All @@ -18,10 +17,7 @@ public override void CreateAccessors()
#if (!UNITY_WEBGL && !UNITY_IOS) || UNITY_EDITOR
try
{
if(saveDataAsBytes)
Mst.Server.DbAccessors.AddAccessor(new ProfilesDatabaseAccessor(mongoDbClientFactory.Client, mongoDbClientFactory.Database));
else
Mst.Server.DbAccessors.AddAccessor(new ProfilesDocumentDatabaseAccessor(mongoDbClientFactory.Client, mongoDbClientFactory.Database));
Mst.Server.DbAccessors.AddAccessor(new ProfilesDatabaseAccessor(mongoDbClientFactory.Client, mongoDbClientFactory.Database));
}
catch (System.Exception e)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task RestoreProfileAsync(ObservableServerProfile profile)
{
var data = await FindOrCreateData(profile);
var document = data.Document.ToDictionary(x => x.Key.ToUint16Hash(), x => x.Value);
profile.FromStrings(document);
//profile.FromStrings(document);
}
catch (Exception e)
{
Expand Down

0 comments on commit 009beab

Please sign in to comment.