Use token_tx_id field to find posts awaiting tokenization

This commit is contained in:
silverpill 2021-12-03 18:52:34 +00:00
parent 4b5b98135d
commit d33899f56e
2 changed files with 4 additions and 2 deletions

View file

@ -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,
);

View file

@ -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?;