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

Fix: Update total_mints #153

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
}
}

pub async fn process(&self, msg: Services) -> Result<()> {

Check warning on line 79 in api/src/events.rs

View workflow job for this annotation

GitHub Actions / clippy/check/doc

docs for function returning `Result` missing `# Errors` section

Check warning on line 79 in api/src/events.rs

View workflow job for this annotation

GitHub Actions / clippy/check/doc

this function has too many lines (102/100)
match msg {
Services::Treasury(TreasuryEventKey { id, .. }, e) => match e.event {
Some(TreasuryEvent::ProjectWalletCreated(payload)) => {
Expand Down Expand Up @@ -332,7 +332,7 @@
let mut collection_am: collections::ActiveModel = collection.clone().into();

collection_am.total_mints = Set(collection.total_mints + 1);

collection_am.update(self.db.get()).await?;
Ok(())
}

Expand Down
Loading