App Tour
Here you will learn how app tour work.
Backend
async tour(JwtUser: JwtUserPayload) {
const user = await this.userRepository.findOne({ where: { id: JwtUser.id } });
if (!user) {
throw new HttpException(
{
message: 'Error',
description: 'User not found',
code: 'USER_NOT_FOUND',
},
HttpStatus.BAD_REQUEST
);
}
user.tourCompleted = !user.tourCompleted;
return await this.userRepository.save(user);
}Frontend
Context file
Tour Helper
How tour helper really helps us?
Last updated