Skip to content

Commit 44b1aed

Browse files
committed
fix attestations
1 parent 6ac526e commit 44b1aed

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/services/attestation.service.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,14 @@ export class AttestationService {
7171
try {
7272
const { collection: collectionPublicKey, address: userPublicKey } = body;
7373

74-
// const asset = await this.assetService.get(
75-
// userPublicKey,
76-
// collectionPublicKey,
77-
// );
78-
//
79-
// const score =
80-
// +asset.attributes.attributeList.find((i) => i.key === 'score')?.value ||
81-
// 0;
82-
83-
const score = 1000;
74+
const asset = await this.assetService.get(
75+
userPublicKey,
76+
collectionPublicKey,
77+
);
78+
79+
const score =
80+
+asset.attributes.attributeList.find((i) => i.key === 'score')?.value ||
81+
0;
8482

8583
const umi = this.umiService.getUmi(this.adminPrivateKey);
8684

0 commit comments

Comments
 (0)