feat(services): add error logging in rent.service
A logging feature is added in the `rent.service.ts` to log any errors when attempting to delete rent. This feature helps in diagnosing issues during rent deletion. Issue: #24 Signed-off-by: Mathis <yidhra@tuta.io>
This commit is contained in:
parent
b4f200cb32
commit
b47ec6c440
@ -146,6 +146,8 @@ async function deleteRentService(rentId: string) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
} catch (error) {
|
||||
logger.error(`\n\n> Error deleting rent: \n${error}\n`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user