- logs in find all coa by user
This commit is contained in:
@@ -50,6 +50,7 @@ export class CoaService {
|
||||
}
|
||||
|
||||
async findByUser(id: string, typeOfCoa: coaType) {
|
||||
console.log('findbyuser', 'msk')
|
||||
try {
|
||||
return await this.coaRepository.findOneOrFail({
|
||||
user: id,
|
||||
@@ -72,6 +73,7 @@ export class CoaService {
|
||||
|
||||
async findByTwoUser(from: string, destination: string, typeOfCoa: coaType) {
|
||||
try {
|
||||
console.log('findbytwouser', 'msk')
|
||||
return await this.coaRepository.findOneOrFail({
|
||||
user: from,
|
||||
relatedUser: destination,
|
||||
|
||||
Reference in New Issue
Block a user