Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong transaction return type description in the docs #79

Open
a3kov opened this issue Aug 12, 2023 · 0 comments
Open

Wrong transaction return type description in the docs #79

a3kov opened this issue Aug 12, 2023 · 0 comments

Comments

@a3kov
Copy link

a3kov commented Aug 12, 2023

From the docs https://hexdocs.pm/sage/readme.html:

# Transaction behaviour:
# @callback transaction(attrs :: map()) :: {:ok, last_effect :: any(), all_effects :: map()} | {:error, reason :: any()}

But when you actually check the code, the success type is 2-tuple, not 3-tuple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant