From f0705d5a36daf06d83bdc68ce4d9e09f56c3038e Mon Sep 17 00:00:00 2001 From: Dominik Zborowski Date: Mon, 30 Oct 2023 18:09:26 +0100 Subject: [PATCH] Fix search --- repositories/asset.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repositories/asset.ts b/repositories/asset.ts index 55bcc69c..48686c81 100644 --- a/repositories/asset.ts +++ b/repositories/asset.ts @@ -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 { async loadAssets(addresses: Address[], profileAddress: Address) { @@ -100,6 +101,7 @@ export class AssetRepository extends Repository { return this.repo(AssetModel) .where('address', viewedProfile.value.receivedAssetIds) + .where('standard', (standard: InterfaceId) => standard) .get() }