Use token_tx_id field to find posts awaiting tokenization
This commit is contained in:
parent
4b5b98135d
commit
d33899f56e
2 changed files with 4 additions and 2 deletions
|
@ -68,6 +68,8 @@ struct TokenTransfer {
|
|||
token_id: Token,
|
||||
}
|
||||
|
||||
/// Finds posts awaiting tokenization
|
||||
/// and looks for corresponding Mint events
|
||||
pub async fn process_events(
|
||||
web3: &Web3<Http>,
|
||||
contract: &Contract<Http>,
|
||||
|
@ -93,7 +95,7 @@ pub async fn process_events(
|
|||
return Ok(())
|
||||
}
|
||||
log::info!(
|
||||
"{} posts are waiting for token to be minted",
|
||||
"{} posts are waiting for confirmation of tokenization tx",
|
||||
token_waitlist_active_count,
|
||||
);
|
||||
|
||||
|
|
|
@ -581,7 +581,7 @@ pub async fn get_token_waitlist(
|
|||
"
|
||||
SELECT post.id
|
||||
FROM post
|
||||
WHERE ipfs_cid IS NOT NULL AND token_id IS NULL
|
||||
WHERE token_tx_id IS NOT NULL AND token_id IS NULL
|
||||
",
|
||||
&[],
|
||||
).await?;
|
||||
|
|
Loading…
Reference in a new issue