diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2023-10-21 14:24:05 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2023-10-21 14:24:05 +0200 |
commit | de4b7e6124254a192c897bdf0070b078a64ee563 (patch) | |
tree | 2517f4e70c56b55515f75b686fd9ea508ef5659c /src/components/services/Tdarr.vue | |
parent | ecf664d19b2a46c9d89a9a9c1128e22b7228607a (diff) | |
download | homer-c45e6fc28b894c1e72064c4d5e8f8e475808511b.tar.gz homer-c45e6fc28b894c1e72064c4d5e8f8e475808511b.tar.zst homer-c45e6fc28b894c1e72064c4d5e8f8e475808511b.zip |
Linting updatev23.10.1
Diffstat (limited to 'src/components/services/Tdarr.vue')
-rw-r--r-- | src/components/services/Tdarr.vue | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/components/services/Tdarr.vue b/src/components/services/Tdarr.vue index a2734f0..22341d9 100644 --- a/src/components/services/Tdarr.vue +++ b/src/components/services/Tdarr.vue | |||
@@ -72,14 +72,20 @@ export default { | |||
72 | method: "POST", | 72 | method: "POST", |
73 | headers: { | 73 | headers: { |
74 | "Content-Type": "application/json", | 74 | "Content-Type": "application/json", |
75 | "Accept": "application/json", | 75 | Accept: "application/json", |
76 | }, | 76 | }, |
77 | body: JSON.stringify({"headers":{"content-Type":"application/json"},"data":{"collection":"StatisticsJSONDB","mode":"getById","docID":"statistics","obj":{}},"timeout":1000}), | 77 | body: JSON.stringify({ |
78 | headers: { "content-Type": "application/json" }, | ||
79 | data: { | ||
80 | collection: "StatisticsJSONDB", | ||
81 | mode: "getById", | ||
82 | docID: "statistics", | ||
83 | obj: {}, | ||
84 | }, | ||
85 | timeout: 1000, | ||
86 | }), | ||
78 | }; | 87 | }; |
79 | const response = await this.fetch( | 88 | const response = await this.fetch(`/api/v2/cruddb`, options); |
80 | `/api/v2/cruddb`, | ||
81 | options | ||
82 | ); | ||
83 | this.error = false; | 89 | this.error = false; |
84 | this.stats = response; | 90 | this.stats = response; |
85 | } catch (e) { | 91 | } catch (e) { |