fix: Transform inventory's GuildId to IOid
This commit is contained in:
parent
2c0f69abbb
commit
029fcb7540
@ -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