mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
fix(i18n): pass req.language when using batchUpdate
This commit is contained in:
parent
52d2693d94
commit
ddf5ad8ec9
1 changed files with 2 additions and 0 deletions
|
|
@ -397,6 +397,8 @@ api.batchUpdate = function(req, res, next) {
|
||||||
res.locals.ops = [];
|
res.locals.ops = [];
|
||||||
var ops = _.transform(req.body, function(m,_req){
|
var ops = _.transform(req.body, function(m,_req){
|
||||||
if (_.isEmpty(_req)) return;
|
if (_.isEmpty(_req)) return;
|
||||||
|
_req.language = req.language;
|
||||||
|
|
||||||
m.push(function() {
|
m.push(function() {
|
||||||
var cb = arguments[arguments.length-1];
|
var cb = arguments[arguments.length-1];
|
||||||
res.locals.ops.push(_req);
|
res.locals.ops.push(_req);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue