Rename WorkflowStorage::flush() to WorkflowStorage::truncate()

[MAILPOET-4531]
This commit is contained in:
David Remer
2022-10-13 12:05:03 +03:00
committed by David Remer
parent dba4b266dd
commit 0679658d33
4 changed files with 4 additions and 4 deletions

View File

@@ -131,7 +131,7 @@ class WorkflowStorage {
}, (array)$data);
}
public function flush(): bool {
public function truncate(): bool {
$workflowTable = esc_sql($this->workflowTable);
$versionTable = esc_sql($this->versionsTable);
return $this->wpdb->query("truncate $workflowTable;") === true &&