Skip to content

Commit

Permalink
fix: Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Sep 5, 2024
1 parent 740dec6 commit 014f4dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/mocks/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ export function toResultCollection(
return omit(
{
...convertCollectionDatesToISO(collection),
...(collection.linked_contract_address
? {
linked_contract_address: collection.linked_contract_address.toLowerCase(),
}
: {}),
urn,
},
['urn_suffix', 'third_party_id']
Expand Down
5 changes: 5 additions & 0 deletions src/Collection/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ export function toFullCollection(

return {
...utils.omit(dbCollection, ['urn_suffix', 'third_party_id']),
...(dbCollection.linked_contract_address
? {
linked_contract_address: dbCollection.linked_contract_address.toLowerCase(),
}
: {}),
urn:
third_party_id && urn_suffix
? getThirdPartyCollectionURN(third_party_id, urn_suffix)
Expand Down

0 comments on commit 014f4dc

Please sign in to comment.