Perbaikan Query
This commit is contained in:
@@ -250,7 +250,7 @@ type Qris struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *WebSocketHandler) fetchPosDeviceByIP(ctx context.Context, db *sql.DB, ip string) ([]string, error) {
|
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)
|
rows, err := db.QueryContext(ctx, query, ip)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user