mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-26 00:23:33 +03:00
Corrected the database table name
This commit is contained in:
parent
bea81e4aa3
commit
73bc0659cd
1 changed files with 1 additions and 1 deletions
|
@ -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.');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue