Fixing anchor in folder_anchor

This commit is contained in:
Maxime Lalo 2023-09-26 16:39:25 +02:00
parent e28887de45
commit 717a252979
3 changed files with 12 additions and 9 deletions

View File

@ -9,9 +9,9 @@ export default class OfficeFolderAnchor extends Resource {
blockchain?: EBlockchainName | string; blockchain?: EBlockchainName | string;
status?: EAnchoringStatus | string; status?: EAnchoringStatus | string;
anchor_nb_try?: number; anchor_nb_try?: number;
tx_id?: string; tx_id: string | null;
tx_link?: string; tx_link: string | null;
tx_hash?: string; tx_hash: string | null;
folder?: OfficeFolder | null; folder?: OfficeFolder | null;
anchored_at?: Date | null; anchored_at?: Date | null;
created_at?: Date | null; created_at?: Date | null;

View File

@ -24,6 +24,9 @@ class OfficeFolderAnchor extends Resource_1.default {
this.blockchain = EBlockchainName_1.default.TEZOS; this.blockchain = EBlockchainName_1.default.TEZOS;
this.status = EAnchoringStatus_1.default.QUEUED; this.status = EAnchoringStatus_1.default.QUEUED;
this.anchor_nb_try = 0; this.anchor_nb_try = 0;
this.tx_id = null;
this.tx_link = null;
this.tx_hash = null;
this.folder = null; this.folder = null;
this.anchored_at = null; this.anchored_at = null;
this.created_at = null; this.created_at = null;
@ -56,15 +59,15 @@ __decorate([
], OfficeFolderAnchor.prototype, "anchor_nb_try", void 0); ], OfficeFolderAnchor.prototype, "anchor_nb_try", void 0);
__decorate([ __decorate([
(0, class_transformer_1.Expose)(), (0, class_transformer_1.Expose)(),
__metadata("design:type", String) __metadata("design:type", Object)
], OfficeFolderAnchor.prototype, "tx_id", void 0); ], OfficeFolderAnchor.prototype, "tx_id", void 0);
__decorate([ __decorate([
(0, class_transformer_1.Expose)(), (0, class_transformer_1.Expose)(),
__metadata("design:type", String) __metadata("design:type", Object)
], OfficeFolderAnchor.prototype, "tx_link", void 0); ], OfficeFolderAnchor.prototype, "tx_link", void 0);
__decorate([ __decorate([
(0, class_transformer_1.Expose)(), (0, class_transformer_1.Expose)(),
__metadata("design:type", String) __metadata("design:type", Object)
], OfficeFolderAnchor.prototype, "tx_hash", void 0); ], OfficeFolderAnchor.prototype, "tx_hash", void 0);
__decorate([ __decorate([
(0, class_transformer_1.Expose)(), (0, class_transformer_1.Expose)(),

View File

@ -25,13 +25,13 @@ export default class OfficeFolderAnchor extends Resource {
public anchor_nb_try?: number = 0; public anchor_nb_try?: number = 0;
@Expose() @Expose()
public tx_id?: string; public tx_id: string | null = null;
@Expose() @Expose()
public tx_link?: string; public tx_link: string | null = null;
@Expose() @Expose()
public tx_hash?: string; public tx_hash: string | null = null;
@Expose() @Expose()
@Type(() => OfficeFolder) @Type(() => OfficeFolder)