func DestroyMarker(scene *models.Scene, sceneMarker *models.SceneMarker, qb models.SceneMarkerWriter, fileDeleter *FileDeleter) error {
	if err := qb.Destroy(sceneMarker.ID); err != nil {
		return err
	}

	// delete the preview for the marker
	seconds := int(sceneMarker.Seconds)
	return fileDeleter.MarkMarkerFiles(scene, seconds)
}
// DestroyMarker deletes the scene marker from the database and returns a
// function that removes the generated files, to be executed after the
// transaction is successfully committed.
DestroyMarker deletes the scene marker from the database and returns a
function that removes the generated files, to be executed after the
transaction is successfully committed.
// DestroyMarker deletes the scene marker from the database and returns a // function that removes the generated files to be executed after the // transaction is successfully committed .
func DestroyMarker(scene *models.Scene, sceneMarker *models.SceneMarker, qb models.SceneMarkerWriter, fileDeleter *FileDeleter) error {
	if err := qb.Destroy(sceneMarker.ID); err != nil {
		return err
	}
	seconds := int(sceneMarker.Seconds)
	return fileDeleter.MarkMarkerFiles(scene, seconds)
}
func DestroyMarker ( scene * models . Scene , sceneMarker * models . SceneMarker , qb models . SceneMarkerWriter , fileDeleter * FileDeleter ) error { if err := qb . Destroy ( sceneMarker . ID ) ; err != nil { return err } seconds := int ( sceneMarker . Seconds ) return fileDeleter . MarkMarkerFiles ( scene , seconds ) }
DestroyMarker deletes the scene marker from the database and returns a
function that removes the generated files, to be executed after the
transaction is successfully committed.
DestroyMarker deletes the scene marker from the database and returns a function that removes the generated files to be executed after the transaction is successfully committed .
// delete the preview for the marker