Delete timeline items along with event (#8192)

This commit is contained in:
Nicolas Mowen 2023-10-17 05:37:07 -06:00 committed by GitHub
parent cac37e484d
commit 1bdfc380c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -516,6 +516,7 @@ def delete_event(id):
media.unlink(missing_ok=True)
event.delete_instance()
Timeline.delete().where(Timeline.source_id == id).execute()
return make_response(
jsonify({"success": True, "message": "Event " + id + " deleted"}), 200
)