Skip to content

Commit

Permalink
fix missing transaction type
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed Sep 27, 2024
1 parent 8fcaa28 commit 843a8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/server/models/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import baseModel from '../libs/baseModel';
const { Schema } = mongoose;

export const currencies = ['gems', 'hourglasses'];
export const transactionTypes = ['buy_money', 'buy_gold', 'spend', 'gift_send', 'gifted_with_money', 'gift_receive', 'debug', 'create_challenge', 'create_bank_challenge', 'create_guild', 'change_class', 'rebirth', 'release_pets', 'release_mounts', 'reroll', 'contribution', 'subscription_perks', 'subscribed', '12_month_subscription', 'admin_update_balance', 'admin_update_hourglasses'];
export const transactionTypes = ['buy_money', 'buy_gold', 'spend', 'gift_send', 'gifted_with_money', 'gift_receive', 'debug', 'create_challenge', 'create_bank_challenge', 'create_guild', 'change_class', 'rebirth', 'release_pets', 'release_mounts', 'reroll', 'contribution', 'subscription_perks', 'subscription_bonus', 'admin_update_balance', 'admin_update_hourglasses'];

export const schema = new Schema({
currency: { $type: String, enum: currencies, required: true },
Expand Down

0 comments on commit 843a8d5

Please sign in to comment.