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

Add support for indexing collection:destroy command #34

Merged

Conversation

curvesy
Copy link
Contributor

@curvesy curvesy commented Jun 6, 2023

What was the problem?

This PR resolves #27

How was it solved?

  • Destroy the collection by collectionID

How was it tested?

Test manually

@curvesy curvesy requested a review from reyraa June 6, 2023 11:37
@haghighatcs haghighatcs linked an issue Jun 6, 2023 that may be closed by this pull request
@haghighatcs haghighatcs changed the title Created destroy file for indexing collection destroy transactions Add support for indexing collection:destroy command Jun 9, 2023
@haghighatcs haghighatcs linked an issue Jun 9, 2023 that may be closed by this pull request
Comment on lines 25 to 29
const [collectionNFT] = await collectionsTable.find(
{ collectionID: tx.params.collectionID },
['collectionID'],
dbTrx,
);
Copy link
Member

Choose a reason for hiding this comment

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

Prefer directly deleting the entry, instead of finding and deleting.

@reyraa reyraa merged commit eb4de72 into feature/adapt-to-muzikie Jun 13, 2023
@reyraa reyraa deleted the 27-add-support-for-indexing-destroy-command branch June 13, 2023 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add support for indexing Destroy command Add support for indexing Collection:Destroy command
3 participants