Skip to content

Commit

Permalink
fix: fix MetadatableCustomIdBuilder meta methods changing non metadat…
Browse files Browse the repository at this point in the history
…a tokens
  • Loading branch information
Amgelo563 committed Feb 13, 2024
1 parent 478c495 commit a0bb9d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/customId/MetadatableCustomIdBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ export class MetadatableCustomIdBuilder extends CustomIdBuilder {
}
const string = value.toString();
this.validate(string);
this.tokens[index] = string;
this.metadata[index] = string;

return this;
}

public getMetaAt(index: number): string | null {
return this.tokens[index] ?? null;
return this.metadata[index] ?? null;
}

public getNamespace(): string {
Expand Down

0 comments on commit a0bb9d2

Please sign in to comment.