Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -89,8 +89,9 @@ func (e *Endpoints) ReservationPost(w http.ResponseWriter, r *http.Request, ps h | ... | @@ -89,8 +89,9 @@ func (e *Endpoints) ReservationPost(w http.ResponseWriter, r *http.Request, ps h |
89 | SELECT cell_start, cell_end | 89 | SELECT cell_start, cell_end |
90 | FROM transactions | 90 | FROM transactions |
91 | WHERE transaction_type=1 | 91 | WHERE transaction_type=1 |
92 | + AND timetable_id=? | ||
92 | AND cell_column=?; | 93 | AND cell_column=?; |
93 | - `, *(reqData.Column)) | 94 | + `, timetable, *(reqData.Column)) |
94 | if err == sql.ErrNoRows { | 95 | if err == sql.ErrNoRows { |
95 | isPossible = true | 96 | isPossible = true |
96 | } | 97 | } | ... | ... |
-
Please register or login to post a comment