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

Fixed GetProject method adding pointer to found Project #18

Merged
merged 1 commit into from
May 22, 2024
Merged

Conversation

Itros97
Copy link
Collaborator

@Itros97 Itros97 commented May 22, 2024

No description provided.

@Itros97 Itros97 requested a review from akrck02 May 22, 2024 18:56

projects := client.Database(database.CurrentDatabase).Collection(database.PROJECT)

found := models.Project{}
err := projects.FindOne(conn, bson.M{"name": project.Name}).Decode(&found)
Copy link
Owner

Choose a reason for hiding this comment

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

in the future filter by id

@Itros97 Itros97 merged commit c1830bc into main May 22, 2024
2 checks passed
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