Corrected the database table name

This commit is contained in:
Alex Tselegidis 2021-11-24 08:33:27 +01:00
parent bea81e4aa3
commit 73bc0659cd
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class Appointments_model extends EA_Model {
*/
public function delete(int $appointment_id)
{
if ( ! $this->db->delete('users', ['id' => $appointment_id]))
if ( ! $this->db->delete('appointments', ['id' => $appointment_id]))
{
throw new RuntimeException('Could not delete appointment.');
}