Skip to content

Commit

Permalink
Merge pull request #51 from openmsupply/#50-test-button-sends-incorre…
Browse files Browse the repository at this point in the history
…ct-report

select correct schedule when getting schedule
  • Loading branch information
mark-prins authored Dec 1, 2020
2 parents 0620d63 + 2f1146a commit 7e3a529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/dbstore/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (datasource *SQLiteDatasource) GetSchedule(id string) (*Schedule, error) {

var schedules []Schedule

rows, err := db.Query("SELECT * FROM Schedule")
rows, err := db.Query("SELECT * FROM Schedule where id=?", id)
defer rows.Close()
if err != nil {
log.DefaultLogger.Error("GetSchedules: db.Query(): ", err.Error())
Expand Down

0 comments on commit 7e3a529

Please # to comment.