Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
V0.4.1 fix get last tracking id function
Browse files Browse the repository at this point in the history
  • Loading branch information
MarquandT committed Dec 11, 2023
1 parent 8ace744 commit 05f695b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/ConfigService.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getLastTrackingDirectory(): string {

public function getLastTrackingId(string $trackingDirectory): string|null {
return $this->getLastConfig()->getTrackingId()
?? (new TrackingService(new Config($trackingDirectory)))->getTrackings()?->last()?->getId()
?? (new TrackingService(new Config(trackingDirectory: $trackingDirectory)))->getTrackings()?->last()?->getId()
;
}

Expand Down

0 comments on commit 05f695b

Please sign in to comment.