Skip to content

feat: Remove generics from opportunity service#505

Merged
Dewyer merged 1 commit into
mainfrom
feat/un-generic-oportunity-service
Apr 14, 2025
Merged

feat: Remove generics from opportunity service#505
Dewyer merged 1 commit into
mainfrom
feat/un-generic-oportunity-service

Conversation

@Dewyer
Copy link
Copy Markdown
Contributor

@Dewyer Dewyer commented Apr 14, 2025

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
swap-staging ⬜️ Ignored (Inspect) Visit Preview Apr 14, 2025 11:55am

mod remove_opportunities;
mod remove_opportunity;

use crate::opportunity::entities::OpportunitySvm;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe it's better to not important the object. You may import the entities and then use entities::OpportunitySvm

reason = ?reason,
"Removing Opportunity",
);
match self.repo.remove_opportunity(opportunity, reason).await {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What happened to the remove opportunity logic here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

wrong way, good catch

@Dewyer Dewyer force-pushed the feat/un-generic-oportunity-service branch from 6cacbff to 8577c61 Compare April 14, 2025 11:54
@Dewyer Dewyer force-pushed the feat/un-generic-oportunity-service branch from 8577c61 to 8fc6ab0 Compare April 14, 2025 11:55
@Dewyer Dewyer requested a review from danimhr April 14, 2025 11:56
@Dewyer Dewyer merged commit 980ba2a into main Apr 14, 2025
3 checks passed
@Dewyer Dewyer deleted the feat/un-generic-oportunity-service branch April 14, 2025 12:02
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