Skip to content

Commit

Permalink
chore(db): table
Browse files Browse the repository at this point in the history
  • Loading branch information
D4mph1r committed Nov 7, 2024
1 parent 91aeb59 commit a12449d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/persistence/entities/locked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Entity, PrimaryKey, Property, Unique } from "@mikro-orm/core";
import type { TNftTransferDetailsObject } from "xp-decentralized-sdk";

@Entity({
tableName: "locked_event_new",
tableName: "locked_event",
})
@Unique({
properties: ["transactionHash", "listenerChain"],
Expand All @@ -15,7 +15,7 @@ export class LockedEvent {
tokenAmount!: bigint;

@Property()
tokenId!: string;
tokenId!: bigint;

@Property()
destinationUserAddress!: string;
Expand Down Expand Up @@ -80,7 +80,7 @@ export class LockedEvent {
imgUri,
sourceNftContractAddress,
}: TNftTransferDetailsObject) {
this.tokenId = tokenId;
this.tokenId = BigInt(tokenId);
this.destinationUserAddress = destinationUserAddress;
this.sourceChain = sourceChain;
this.tokenAmount = BigInt(tokenAmount);
Expand Down

0 comments on commit a12449d

Please sign in to comment.