Actually delete the snapshot record, not just the event connection

This commit is contained in:
Isaac Connor 2021-08-06 13:17:02 -04:00
parent 2f7c44dce2
commit 2c7af3886c
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class Snapshot extends ZM_Object {
public function delete() {
if ( property_exists($this, 'Id') ) {
dbQuery('DELETE FROM `Snapshot_Events` WHERE `SnapshotId`=?', array($this->{'Id'}));
dbQuery('DELETE FROM `Snapshots` WHERE `Id`=?', array($this->{'Id'}));
}
}