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

refactor: some refactors #30

Merged
merged 4 commits into from
Feb 17, 2024
Merged

refactor: some refactors #30

merged 4 commits into from
Feb 17, 2024

Conversation

asbiin
Copy link
Member

@asbiin asbiin commented Feb 12, 2024

No description provided.

->where('id', $this->listId)
->firstOrFail();
$list = auth()->user()->lists()
->findOrFail($this->listId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning: it must be First or Fail, not find or fail. We need to get the first one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's exactly the same actually ...

Copy link

sonarcloud bot commented Feb 17, 2024

@asbiin asbiin merged commit b095e20 into main Feb 17, 2024
13 checks passed
@asbiin asbiin deleted the 20240212-fixes branch February 17, 2024 13:20
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

Successfully merging this pull request may close these issues.

2 participants