Skip to content

Commit

Permalink
Fix delayed votes api validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mtyszczak committed Dec 12, 2023
1 parent b19b5ba commit 0b1267e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3558,7 +3558,7 @@ ___

### val

**val**: `string`
**val**: `string` \| `number`

#### Defined in

Expand Down
4 changes: 2 additions & 2 deletions wasm/lib/detailed/api/types/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export class ApiDelayedVote {
@IsDateString()
public time!: string;

@IsNumberString()
public val!: string;
@Validate(IsNumberOrStringNumber)
public val!: number | string;
}

export class ApiAuthority {
Expand Down

0 comments on commit 0b1267e

Please # to comment.