# BaseModel.fixNumbers() method · @imqueue/pg-sequelize

Source: https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.basemodel.fixnumbers/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-sequelize 4.2.0 — generated reference, not hand-written

Casts this instance's numeric columns back to numbers.

**Signature:**

```typescript
fixNumbers(): BaseModel<T>;
```
**Returns:**

[BaseModel](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.basemodel/)<T>

This instance, for chaining.

## Remarks

Numeric columns selected through a view arrive as strings, so the finders on this class re-cast them after every select on a view, and this is the method they use. It is public for the cases they do not cover, a raw query being the common one.

Only the columns the model declares are looked at, and the instance is changed in place.

