feat(salix): refs #6930 minor updates

This commit is contained in:
Javier Segarra 2024-04-19 10:50:14 +02:00
parent 322d91d814
commit 30d0db163e
3 changed files with 223 additions and 219 deletions

View File

@ -28,6 +28,9 @@ describe('Renew Token', () => {
});
it('should renew token', async() => {
const {courtesyTime} = await models.AccessTokenConfig.findOne({
fields: ['courtesyTime']
});
const mockDate = new Date(startingTime + 26600000);
jasmine.clock().mockDate(mockDate);
const {id} = await models.VnUser.renewToken(ctx);
@ -35,7 +38,7 @@ describe('Renew Token', () => {
expect(id).not.toEqual(ctx.req.accessToken.id);
await models.VnUser.logout(ctx.req.accessToken.id);
jasmine.clock().tick(70 * 1000);
jasmine.clock().tick((courtesyTime + 10) * 1000);
let tokenNotExists;
try {
tokenNotExists = await models.AccessToken.findById(ctx.req.accessToken.id);

View File

@ -224,5 +224,6 @@
"There are not picking tickets": "There are not picking tickets",
"ticketCommercial": "The ticket {{ ticket }} for the salesperson {{ salesMan }} is in preparation. (automatically generated message)",
"This password can only be changed by the user themselves": "This password can only be changed by the user themselves",
"They're not your subordinate": "They're not your subordinate"
"They're not your subordinate": "They're not your subordinate",
"InvoiceIn is already booked": "InvoiceIn is already booked"
}

View File

@ -99,7 +99,7 @@
{
"relation": "user",
"scope": {
"fields": ["email", "name", "nickname", "roleFk"],
"fields": ["email", "name", "nickname", "roleFk", "name", "emailVerified","recoveryPhone"],
"include": [
{
"relation": "role",