forked from mirrors/easyappointments
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)
|
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.');
|
throw new RuntimeException('Could not delete appointment.');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue