Created
September 5, 2022 03:31
-
-
Save rugyoga/734af859c0636769f28bfe150244469c to your computer and use it in GitHub Desktop.
Change list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@spec changelist(term) :: [change_t()] | |
defp changelist(r = %_{__audit_trail__: audit_trail}) do | |
if audit_trail, do: [{r, audit_trail} | changelist(record(audit_trail))], else: [] | |
end | |
defp changelist(_), do: [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment