mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Ported reroll. Added unit tests. Added reroll route. Added integration tests
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
NotAuthorized,
|
||||
} from '../libs/errors';
|
||||
import splitWhitespace from '../libs/splitWhitespace';
|
||||
import _ from 'lodash';
|
||||
|
||||
module.exports = function releasePets (user, req = {}, analytics) {
|
||||
if (user.balance < 1) {
|
||||
@@ -27,7 +28,7 @@ module.exports = function releasePets (user, req = {}, analytics) {
|
||||
uuid: user._id,
|
||||
acquireMethod: 'Gems',
|
||||
gemCost: 4,
|
||||
category: 'behavior'
|
||||
category: 'behavior',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user