mirror of
https://github.com/hay-kot/homebox.git
synced 2025-06-26 13:48:34 +00:00
chore: developer cleanup (#300)
* new PR tasks * add homebox to know words * formatting * bump deps * generate db models * ts errors * drop id * fix accessor * drop unused time field * change CI * add expected error * add type check * resolve serveral type errors * hoise in CI
This commit is contained in:
parent
88f9ff90d4
commit
bd321af29f
142 changed files with 817 additions and 1200 deletions
|
@ -76,6 +76,7 @@ export class Requests {
|
|||
|
||||
const token = this.token();
|
||||
if (token !== "" && payload.headers !== undefined) {
|
||||
// @ts-expect-error - we know that the header is there
|
||||
payload.headers["Authorization"] = token; // eslint-disable-line dot-notation
|
||||
}
|
||||
|
||||
|
@ -83,6 +84,7 @@ export class Requests {
|
|||
if (rargs.data) {
|
||||
payload.body = rargs.data;
|
||||
} else {
|
||||
// @ts-expect-error - we know that the header is there
|
||||
payload.headers["Content-Type"] = "application/json";
|
||||
payload.body = JSON.stringify(rargs.body);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue