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:
Mathis H (Avnyr) 2024-05-03 12:01:56 +02:00
parent b4f200cb32
commit b47ec6c440
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -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`);
}
}