fix: Eslint offenses for JS files
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user