(kind string)
| 14 | const graphMissingBody = "{\"error\":{\"code\":\"schedule_link_not_found\",\"message\":\"Commitment link or gate not found\"}}\n" |
| 15 | |
| 16 | func (f *graphHTTP) resourceID(kind string) string { |
| 17 | f.t.Helper() |
| 18 | var id string |
| 19 | if err := f.srv.store.DB().QueryRow("SELECT id FROM schedule_" + kind + " LIMIT 1").Scan(&id); err != nil { |
| 20 | f.t.Fatal(err) |
| 21 | } |
| 22 | return id |
| 23 | } |
| 24 | func (f *graphHTTP) resourcePath(kind, id string) string { |
| 25 | return "/api/v1/workspaces/" + f.ws.Slug + "/commitment-" + kind + "/" + id |
| 26 | } |
no test coverage detected