- logs in find all coa by user

This commit is contained in:
Fadli
2022-09-06 22:29:26 +07:00
parent 42403184b1
commit e11c6a285b
3 changed files with 14 additions and 1 deletions

View File

@@ -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,