Cant insert integer into column of type json number array
export const platform = pgTable("platform", {
id: integer("id").unique().primaryKey(),
name: text("name"),
slug: text("slug"),
symbol: text("symbol"),
tokens: json("tokens").$type<number[]>(),
});export const platform = pgTable("platform", {
id: integer("id").unique().primaryKey(),
name: text("name"),
slug: text("slug"),
symbol: text("symbol"),
tokens: json("tokens").$type<number[]>(),
}); const platformUpdateResult = await db
.update(platformSchema)
.set({ tokens: sql`${platform.tokens} || ${token.id}` })
.where(eq(platformSchema.id, token.platform))
.returning(); const platformUpdateResult = await db
.update(platformSchema)
.set({ tokens: sql`${platform.tokens} || ${token.id}` })
.where(eq(platformSchema.id, token.platform))
.returning();this is not working