mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-14 02:44:37 +01:00
GuideCompleteRequest impl and saving progression
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
using MongoDB.Bson;
|
||||
using MongoDB.Driver;
|
||||
using AscNet.Common.MsgPack;
|
||||
using MongoDB.Bson.Serialization;
|
||||
using MongoDB.Bson.Serialization.Options;
|
||||
|
||||
namespace AscNet.Common.Database
|
||||
@@ -89,6 +88,11 @@ namespace AscNet.Common.Database
|
||||
});
|
||||
}
|
||||
|
||||
public void Save()
|
||||
{
|
||||
collection.ReplaceOne(Builders<Player>.Filter.Eq(x => x.Id, Id), this);
|
||||
}
|
||||
|
||||
[BsonId]
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user