Skip to content

Commit

Permalink
Add transfer condition in the handle_documents_batch
Browse files Browse the repository at this point in the history
  • Loading branch information
pshenmic committed Sep 27, 2024
1 parent 6904df5 commit fee59ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/indexer/src/processor/psql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ impl PSQLProcessor {
let document_identifier = document.identifier.clone();

match document_transition {
DocumentTransition::Transfer(_) => {
self.dao.assign_document(document, state_transition.owner_id()).await.unwrap();
}
DocumentTransition::UpdatePrice(_) => {
self.dao.update_document_price(document).await.unwrap();
}
Expand Down

0 comments on commit fee59ed

Please sign in to comment.