/home/Stell/untitled1/CMakeLists.txt:14: error: Found package configuration file: /usr/lib64/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find required Qt component "WebEngineWidgets". Expected Config file at "/usr/lib64/cmake/Qt6WebEngineWidgets/Qt6WebEngineWidgetsConfig.cmake" does NOT exist
{
{
"id": 5,
"uid": "4666b60a-cb96-46e4-a673-6f574a29117b",
"name": "Woah",
"author": "Beno",
"picture": "234",
"tracks": [
{
"id": 1,
"uid": "082c8f97-8256-43a2-9c3e-6f1ef42d05e5",
"name": "Woah",
"author": "BENO",
"picture": "123",
"trackFile": null,
"albumName": "Woah",
"albumUid": "4666b60a-cb96-46e4-a673-6f574a29117b"
},
{
"id": 2,
"uid": "fc8daef6-1a07-45db-99d5-b2de80a70b3d",
"name": "Woah",
"author": "BENO",
"picture": "123",
"trackFile": null,
"albumName": "Woah",
"albumUid": "4666b60a-cb96-46e4-a673-6f574a29117b"
}
]
},
{
"id": 5,
"uid": "4666b60a-cb96-46e4-a673-6f574a29117b",
"name": "Woah",
"author": "Beno",
"picture": "234",
"tracks": [
{
"id": 1,
"uid": "082c8f97-8256-43a2-9c3e-6f1ef42d05e5",
"name": "Woah",
"author": "BENO",
"picture": "123",
"trackFile": null,
"albumName": "Woah",
"albumUid": "4666b60a-cb96-46e4-a673-6f574a29117b"
},
{
"id": 2,
"uid": "fc8daef6-1a07-45db-99d5-b2de80a70b3d",
"name": "Woah",
"author": "BENO",
"picture": "123",
"trackFile": null,
"albumName": "Woah",
"albumUid": "4666b60a-cb96-46e4-a673-6f574a29117b"
}
]
},
{
"id": 5,
"uid": "4666b60a-cb96-46e4-a673-6f574a29117b",
"name": "Woah",
"author": "Beno",
"picture": "234",
"tracks": [
{
"id": 1,
"uid": "082c8f97-8256-43a2-9c3e-6f1ef42d05e5",
"name": "Woah",
"author": "BENO",
"picture": "123",
"trackFile": null,
"albumName": "Woah",
"albumUid": "4666b60a-cb96-46e4-a673-6f574a29117b"
},
{
"id": 2,
"uid": "fc8daef6-1a07-45db-99d5-b2de80a70b3d",
"name": "Woah",
"author": "BENO",
"picture": "123",
"trackFile": null,
"albumName": "Woah",
"albumUid": "4666b60a-cb96-46e4-a673-6f574a29117b"
}
]
}
}
TS2339: Property 'UserMailService' does not exist on type 'UserService'.
import { Injectable } from '@nestjs/common';
import {InjectRepository} from "@nestjs/typeorm";
import {Repository} from "typeorm";
import {UserEntity} from "./entities/user.entity";
import {ApiError} from "./exceptions/api-error";
import {v4} from 'uuid';
import * as bcrypt from 'bcrypt';
import {CreateUserDto} from "./dto/create-user.dto";
import {TokenGuard} from "./token.guard";
import {UserMailService} from "./userMail.service";
@Injectable()
export class UserService {
constructor(@InjectRepository(UserEntity) private readonly userRepository: Repository<UserEntity>) {}
public async register(email: any, password: any) {
const candidate = await this.userRepository.findOne({where: {email: email}})
if (candidate) {
throw ApiError.BadRequest(`Пользователь с почтовым адресом ${email} уже существует`)
}
const hashPassword = await bcrypt.hash(password, 3);
const activationLink = v4(); // v34fa-asfasf-142saf-sa-asf
const user = await this.userRepository.create({email, password: hashPassword, activationLink})
await UserMailService.sendActivationMail(email, `${process.env.API_URL}/api/activate/${activationLink}`);
const userDto = new CreateUserDto(user); // id, email, isActivated
const tokens = TokenGuard.generateTokens({...userDto});
await TokenGuard.saveToken(userDto.id, tokens.refreshToken);
return {...tokens, user: userDto}
}
}
TS2339: Property 'sendActivationMail' does not exist on type 'typeof UserMailService'.
await UserMailService.sendActivationMail(email, `${process.env.API_URL}/api/activate/${activationLink}`);
TS2339: Property 'sendActivationMail' does not exist on type 'typeof UserMailService'
rolname | rolsuper | rolinherit | rolcreaterole | rolcreatedb | rolcan
login | rolreplication | rolconnlimit | rolpassword | rolvaliduntil | rolbypassrls | rolc
onfig | oid
---------------------------+----------+------------+---------------+-------------+-------
------+----------------+--------------+-------------+---------------+--------------+-----
------+-------
pg_database_owner | f | t | f | f | f
| f | -1 | ******** | | f |
| 6171
pg_read_all_data | f | t | f | f | f
| f | -1 | ******** | | f |
| 6181
pg_write_all_data | f | t | f | f | f
| f | -1 | ******** | | f |
| 6182
pg_monitor | f | t | f | f | f
| f | -1 | ******** | | f |
| 3373
pg_read_all_settings | f | t | f | f | f
| f | -1 | ******** | | f |
| 3374
pg_read_all_stats | f | t | f | f | f
| f | -1 | ******** | | f |
--Далее--