fix: Eslint offenses for JS files

This commit is contained in:
Faruk AYDIN
2024-01-07 20:09:36 +01:00
parent 9ffe2c14df
commit 879aa1f9f8
15 changed files with 29 additions and 39 deletions

View File

@@ -7,10 +7,9 @@ export default {
if (!object) return { data: [] };
const response =
(await $.http.get) <
TResponse >
`/services/data/v56.0/sobjects/${object}/describe`;
const response = await $.http.get(
`/services/data/v56.0/sobjects/${object}/describe`
);
const fields = response.data.fields.map((field) => {
return {

View File

@@ -3,8 +3,7 @@ export default {
key: 'listObjects',
async run($) {
const response =
(await $.http.get) < TResponse > '/services/data/v56.0/sobjects';
const response = await $.http.get('/services/data/v56.0/sobjects');
const objects = response.data.sobjects.map((object) => {
return {