mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
adapt reset to v2 and remove deleted files from gulpfile
This commit is contained in:
@@ -878,7 +878,7 @@ _.each(shared.ops, function(op,k){
|
||||
if (['rebirth', 'reroll', 'reset'].indexOf(k) !== -1) { // proxy ops that change tasks directly to v3
|
||||
if (k === 'rebirth') k = 'userRebirth'; // the name is different in v3
|
||||
if (k === 'reroll') k = 'userReroll';
|
||||
// if (k === 'reset') k = 'resetUser';
|
||||
if (k === 'reset') k = 'userReset';
|
||||
|
||||
api[k] = function (req, res, next) {
|
||||
req.v2 = true;
|
||||
|
||||
Reference in New Issue
Block a user