pgx cannot implicitly encode int arg into text for the `$1 || ' month'` concatenation pattern (error: "unable to encode 12 into text format for text (OID 25): cannot find encode plan"). Multiplication with a known interval works directly with the int parameter and is semantically equivalent. Discovered during the T19 smoke test — the tick endpoint returned 500 on every call before this fix.
Marktvogt Backend
Go REST API + WebSocket