feat: 接入天河链存证接口
This commit is contained in:
@@ -45,7 +45,12 @@ export class AttestationService {
|
||||
};
|
||||
const dataHash = this.blockchain.hashData(summary);
|
||||
const proof = await this.prisma.blockchainProof.create({
|
||||
data: { traceCodeId, dataHash, status: ProofStatus.PENDING },
|
||||
data: {
|
||||
traceCodeId,
|
||||
dataHash,
|
||||
status: ProofStatus.PENDING,
|
||||
rawResponse: { requestMeta: summary },
|
||||
},
|
||||
});
|
||||
await this.queue.add('onchain', { proofId: proof.id });
|
||||
return proof;
|
||||
|
||||
Reference in New Issue
Block a user