revisionable icon indicating copy to clipboard operation
revisionable copied to clipboard

Snapshot method broken?

Open edbentinck opened this issue 6 years ago • 0 comments

https://github.com/jarektkaczyk/revisionable/blob/bd2fc5f7259ebca99894105e5689cee59b2a981d/src/Laravel/Revisionable.php#L25-L29

The snapshot method always returns the first revision made, regardless of the timestamp. Isn't it supposed to return the most recent revision (i.e. latest()) registered before the given timestamp?

Or am I missing something?

edbentinck avatar Sep 27 '18 18:09 edbentinck