feat: implement purchasing of skins #353

Merged
Sainan merged 4 commits from buy-skins into main 2024-06-22 14:19:07 -07:00
Showing only changes of commit b691bba6c7 - Show all commits

View File

@ -525,7 +525,13 @@ weaponSkinsSchema.virtual("ItemId").get(function () {
return { $oid: this._id.toString() };
});
weaponSkinsSchema.set("toJSON", { virtuals: true });
weaponSkinsSchema.set("toJSON", {
virtuals: true,
transform(_doc, ret, _options) {
delete ret._id;
delete ret.__v;
}
});
const tauntHistorySchema = new Schema<ITauntHistory>(
{