Skip to content

Commit

Permalink
[!] #115 fix nft expired_at
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongFuze committed Mar 18, 2024
1 parent 917f0d9 commit a8c93cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/controller/tigergraphql/hold.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ impl HoldRecord {
self.updated_at.timestamp()
}

/// When the transaction happened. May not be provided by upstream.
async fn expired_at(&self) -> Option<i64> {
self.expired_at.map(|dt| dt.timestamp())
}

/// NFT Category. See `availableNftCategories` for all values available.
async fn category(&self, ctx: &Context<'_>) -> Result<ContractCategory> {
let loader: &Loader<String, Option<ContractRecord>, ContractLoadFn> =
Expand Down

0 comments on commit a8c93cb

Please sign in to comment.