Automator_DB_Handler_Actions::mark_complete( $action_id,  $recipe_log_id,  $completed = 1,  $error_message = '' )


Parameters Parameters

$action_id

(Required)

$recipe_log_id

(Required)

$completed

(Optional)

Default value: 1

$error_message

(Optional)

Default value: ''


Source Source

File: src/core/lib/utilities/db/class-automator-db-handler-actions.php

	public function mark_complete( $action_id, $recipe_log_id, int $completed = 1, string $error_message = '' ) {
		$data = array(
			'completed'     => $completed,
			'date_time'     => current_time( 'mysql' ),
			'error_message' => $error_message,
		);

		$where = array(
			'automator_action_id'     => $action_id,
			'automator_recipe_log_id' => $recipe_log_id,
		);

		Automator()->db->action->update( $data, $where );

	}