Skip to content

Commit

Permalink
Update for ChirpStack v4.0.3 schema changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Nov 7, 2022
1 parent baa0e65 commit 80395ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,9 @@ function encodeDownlink(input) {
tags,
device_status_req_interval,
flush_queue_on_activate,
measurements
) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29)`,
measurements,
auto_detect_measurements
) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30)`,
nsDP.ID,
intToUUID(asDP.OrganizationID),
asDP.CreatedAt,
Expand Down Expand Up @@ -1029,6 +1030,7 @@ function encodeDownlink(input) {
1,
true,
"{}",
true,
)
if err != nil {
panic(err)
Expand Down

0 comments on commit 80395ef

Please sign in to comment.