#6930 - Add DEFAULT scope when is Multimedia scope #2333

Merged
jsegarra merged 6 commits from 6930_scope_Default_Multimedia into dev 2024-04-22 07:26:37 +00:00
3 changed files with 223 additions and 219 deletions
Showing only changes of commit 30d0db163e - Show all commits

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"],
Outdated
Review

name esta repetido

name esta repetido

ARGGGH

ARGGGH
"include": [
{
"relation": "role",