The magic number 6 is the length of the literal "speeches/" prefix these four call sites strip off an ArangoDB-style id — spelling it out makes that relationship explicit and survives a future rename of the prefix without a silent off-by-N bug. Also swap response.statusText for response.status in fetchTalk's error message: statusText is frequently empty (HTTP/2 drops the reason phrase), so the numeric code is the more reliable thing to show. This mirrors a fix already made directly on rixdagen-prod's production branch (commit 9a87111) that hadn't been brought upstream yet.main
parent
7ea92c9366
commit
291dcebcb8
5 changed files with 5 additions and 5 deletions
Loading…
Reference in new issue