feat: Clan creation & persistence #146

Merged
Sainan merged 5 commits from clans into main 2024-05-04 06:42:25 -07:00
Showing only changes of commit 029fcb7540 - Show all commits

View File

@ -974,6 +974,9 @@ inventorySchema.set("toJSON", {
inventoryResponse.TrainingDate = toMongoDate(inventoryDatabase.TrainingDate);
inventoryResponse.Created = toMongoDate(inventoryDatabase.Created);
if (inventoryDatabase.GuildId) {
inventoryResponse.GuildId = toOid(inventoryDatabase.GuildId);
}
if (inventoryResponse.BlessingCooldown) {
inventoryResponse.BlessingCooldown = toMongoDate(inventoryDatabase.BlessingCooldown);
}