const [token] = await Promise.all([
await this.authService.createToken(userEntity), //this function return token
await this.userService.setLastLoginDate(userEntity), // return Promise<UpdateResult> (queryBuilder.execute())
]);
return new LoginPayloadDto(token);
it works, but is it the correct record? My second function doesn't return any variable, it just performs the query and I only need a token