GS
Size: a a a
GS
В
GS
В
AB
JL
AB
JL
JL
IF
IF
GS
MV
LK
MV
M
`this.accountRepository.createAccount is not a function`
Вот класс:`
@EntityRepository(Account)
export class AccountRepository extends Repository<Account> {
async createAccount(createAccountInput: CreateAccountInput): Promise<Account> {
const account = await this.save(this.create(createAccountInput));
return await this.findById(account.id);
}
async findById(id: string): Promise<Account> {
return await this.findOne(id);
}
}
`
M
`this.accountRepository.createAccount is not a function`
Вот класс:`
@EntityRepository(Account)
export class AccountRepository extends Repository<Account> {
async createAccount(createAccountInput: CreateAccountInput): Promise<Account> {
const account = await this.save(this.create(createAccountInput));
return await this.findById(account.id);
}
async findById(id: string): Promise<Account> {
return await this.findOne(id);
}
}
`
KB
LK
KB