Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbo committed Oct 30, 2023
1 parent a97fc43 commit f0705d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions repositories/asset.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Repository } from 'pinia-orm'

import { Asset, AssetModel } from '@/models/asset'
import { InterfaceId } from '@/types/assets'

export class AssetRepository extends Repository<AssetModel> {
async loadAssets(addresses: Address[], profileAddress: Address) {
Expand Down Expand Up @@ -100,6 +101,7 @@ export class AssetRepository extends Repository<AssetModel> {

return this.repo(AssetModel)
.where('address', viewedProfile.value.receivedAssetIds)
.where('standard', (standard: InterfaceId) => standard)
.get()
}

Expand Down

0 comments on commit f0705d5

Please sign in to comment.