feat: Clan creation & persistence #146
@ -974,6 +974,9 @@ inventorySchema.set("toJSON", {
|
|||||||
|
|
||||||
inventoryResponse.TrainingDate = toMongoDate(inventoryDatabase.TrainingDate);
|
inventoryResponse.TrainingDate = toMongoDate(inventoryDatabase.TrainingDate);
|
||||||
inventoryResponse.Created = toMongoDate(inventoryDatabase.Created);
|
inventoryResponse.Created = toMongoDate(inventoryDatabase.Created);
|
||||||
|
if (inventoryDatabase.GuildId) {
|
||||||
|
inventoryResponse.GuildId = toOid(inventoryDatabase.GuildId);
|
||||||
|
}
|
||||||
if (inventoryResponse.BlessingCooldown) {
|
if (inventoryResponse.BlessingCooldown) {
|
||||||
inventoryResponse.BlessingCooldown = toMongoDate(inventoryDatabase.BlessingCooldown);
|
inventoryResponse.BlessingCooldown = toMongoDate(inventoryDatabase.BlessingCooldown);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user