1
0
Fork 0
mirror of synced 2024-07-04 06:00:53 +12:00

fix volume sync

This commit is contained in:
Damodar Lohani 2022-11-14 10:38:17 +00:00
parent 0570e26a48
commit f469d1ba45

View file

@ -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)