feat: expose lang in getCurrentUserData #3488

Open
ldragan wants to merge 3 commits from ldragan/salix:taro/migrate-fetchUser into dev
3 changed files with 8 additions and 2 deletions
Showing only changes of commit 5990835db6 - Show all commits

View File

@ -109,7 +109,7 @@ module.exports = Self => {
);
const newRefundTicket = await models.Ticket.create({
clientFk: claim.ticket().clientFk,
shipped: nextShipped,
shipped: nextShipped.shipped,
landed: null,
nickname,
warehouseFk,

View File

@ -19,7 +19,7 @@ describe('importToNewRefundTicket()', () => {
});
tx = await models.Entry.beginTransaction({});
options = {transaction: tx};
spyOn(models.Agency, 'getShipped').and.returnValue(Promise.resolve(expectedDate));
spyOn(models.Agency, 'getShipped').and.returnValue(Promise.resolve({shipped: expectedDate}));
});
afterEach(async() => {

View File

@ -33,6 +33,11 @@ module.exports = Self => {
type: 'date',
description: `The to date filter`
},
{
arg: 'shipped',
type: 'date',
description: `The shipped date filter`
},
{
arg: 'nickname',
type: 'string',
@ -201,6 +206,7 @@ module.exports = Self => {
case 'clientFk':
case 'agencyModeFk':
case 'warehouseFk':
case 'shipped':
param = `t.${param}`;
return {[param]: value};
}