Skip to content

Commit

Permalink
fix: Fix types and remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Dec 29, 2021
1 parent 5141d9d commit 10acadd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Item/Item.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { FullItem, ItemAttributes } from './Item.types'
import {
buildTPItemURN,
decodeThirdPartyItemURN,
isThirdPartyItemURNValid,
isTPItem,
toDBItem,
} from './utils'
Expand Down
4 changes: 0 additions & 4 deletions src/Item/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ export function isTPItem(item: ItemAttributes): boolean {
return item.urn_suffix !== null && item.collection_id !== null
}

export function isThirdPartyItemURNValid(itemURN: string): boolean {
return tpwItemURNRegex.test(itemURN)
}

export function decodeThirdPartyItemURN(
itemURN: string
): {
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/api/Bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export class Bridge {
...dbItem,
urn: hasURN
? buildTPItemURN(
dbCollection.third_party_id!,
dbCollection.urn_suffix!,
dbCollection!.third_party_id!,
dbCollection!.urn_suffix!,
dbItem.urn_suffix!
)
: null,
Expand Down

0 comments on commit 10acadd

Please sign in to comment.