diff --git a/src/services/mysql.service.ts b/src/services/mysql.service.ts index 6b34529..afae857 100644 --- a/src/services/mysql.service.ts +++ b/src/services/mysql.service.ts @@ -1135,6 +1135,7 @@ const MySqlService = { }); }, + //ToTest /** * Retrieves all assigned vehicles from the database. * @@ -1156,6 +1157,16 @@ const MySqlService = { } }); }, + + //ToTest + /** + * Updates a rent record in the database. + * + * @param {MysqlHandler} handler - The database handler object. + * @param {IDbRent} data - The rent object containing the updated data. + * @returns {Promise} - A promise that resolves to the status result of the update operation. + * @throws {Error} - If an error occurs during the update operation. + */ update(handler: MysqlHandler, data: IDbRent): Promise { return new Promise((resolve, reject) => { if (!data.id) return reject("Id is undefined");