diff --git a/internal/handlers/websocket/websocket.go b/internal/handlers/websocket/websocket.go index eccf2f9..5ebc578 100644 --- a/internal/handlers/websocket/websocket.go +++ b/internal/handlers/websocket/websocket.go @@ -250,7 +250,7 @@ type Qris struct { } func (h *WebSocketHandler) fetchPosDeviceByIP(ctx context.Context, db *sql.DB, ip string) ([]string, error) { - query := `SELECT posdevice FROM m_deviceqris WHERE ip = $1 AND status = '1'` + query := `SELECT postdevice FROM m_deviceqris WHERE ip = $1 AND status = '1'` rows, err := db.QueryContext(ctx, query, ip) if err != nil { return nil, err