Skip to content

Commit

Permalink
chore: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tyboro2002 committed May 21, 2024
1 parent fb1517b commit 308f84d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frontend/src/composables/services/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function get<T>(
const response = await client.get(endpoint);
ref.value = fromJson(response.data);
} catch (error: any) {
if (selfprocessError){
if (selfprocessError) {
processError(error);
console.error(error); // Log the error for debugging
} else {
Expand Down Expand Up @@ -57,7 +57,7 @@ export async function create<T>(
});
ref.value = fromJson(response.data);
} catch (error: any) {
if (selfprocessError){
if (selfprocessError) {
processError(error);
console.error(error); // Log the error for debugging
} else {
Expand Down Expand Up @@ -89,7 +89,7 @@ export async function patch(
});
ref.value = Response.fromJSON(response.data);
} catch (error: any) {
if (selfprocessError){
if (selfprocessError) {
processError(error);
console.error(error); // Log the error for debugging
} else {
Expand All @@ -115,7 +115,7 @@ export async function deleteId<T>(
const response = await client.delete(endpoint);
ref.value = fromJson(response.data);
} catch (error: any) {
if (selfprocessError){
if (selfprocessError) {
processError(error);
console.error(error); // Log the error for debugging
} else {
Expand Down Expand Up @@ -143,7 +143,7 @@ export async function deleteIdWithData<T>(
const response = await client.delete(endpoint, { data });
ref.value = fromJson(response.data);
} catch (error: any) {
if (selfprocessError){
if (selfprocessError) {
processError(error);
console.error(error); // Log the error for debugging
} else {
Expand All @@ -170,7 +170,7 @@ export async function getList<T>(
ref.value = response.data.map((data: T) => fromJson(data));
} catch (error: any) {
ref.value = []; // Set the ref to an empty array
if (selfprocessError){
if (selfprocessError) {
processError(error);
console.error(error); // Log the error for debugging
} else {
Expand Down Expand Up @@ -219,7 +219,7 @@ export async function getPaginatedList<T>(
results: [],
};

if (selfprocessError){
if (selfprocessError) {
processError(error);
console.error(error); // Log the error for debugging
} else {
Expand Down Expand Up @@ -251,7 +251,7 @@ export async function getListMerged<T>(
allData.push(...responseData); // Merge into the allData array
} catch (error: any) {
ref.value = []; // Set the ref to an empty array
if(selfprocessError){
if (selfprocessError){
processError(error);
console.error(error); // Log the error for debugging
} else {
Expand Down

0 comments on commit 308f84d

Please sign in to comment.