From f469d1ba450c8011867fa0b38bf5e3cac06e1d74 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 14 Nov 2022 10:38:17 +0000 Subject: [PATCH] fix volume sync --- src/Appwrite/Platform/Tasks/VolumeSync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Tasks/VolumeSync.php b/src/Appwrite/Platform/Tasks/VolumeSync.php index 56a61c52ef..6197b20fbd 100644 --- a/src/Appwrite/Platform/Tasks/VolumeSync.php +++ b/src/Appwrite/Platform/Tasks/VolumeSync.php @@ -22,7 +22,7 @@ class VolumeSync extends Action ->param('source', null, new Text(255), 'Source path to sync from.', false) ->param('destination', null, new Text(255), 'Destination path to sync to.', false) ->param('interval', null, new Integer(true), 'Interval to run rsync', false) - ->callback($this->action); + ->callback(fn ($source, $destination, $interval) => $this->action($source, $destination, $interval)); } public function action(string $source, string $destination, int $interval)