REF: Remove unnecessary x-tag headers from API requests in interest-related components

This commit is contained in:
2025-06-15 17:18:24 +02:00
parent 536e544d04
commit d53f4f03f5
5 changed files with 4 additions and 77 deletions

View File

@@ -355,9 +355,6 @@ const selectedInterest = ref<Interest | null>(null);
const selectedSalesLevel = ref('all');
const { data: interests, refresh } = useFetch<InterestsResponse>("/api/get-interests", {
headers: {
"x-tag": user.value?.email ? "094ut234" : "pjnvü1230",
},
onResponse() {
loading.value = false;
},

View File

@@ -202,9 +202,6 @@ const draggedInterest = ref<Interest | null>(null);
const draggedFromLevel = ref<string | null>(null);
const { data: interests, refresh } = useFetch<InterestsResponse>("/api/get-interests", {
headers: {
"x-tag": user.value?.email ? "094ut234" : "pjnvü1230",
},
onResponse() {
loading.value = false;
},
@@ -405,13 +402,10 @@ const handleDrop = async (event: DragEvent, targetLevel: string) => {
// Update the interest's sales process level
const response = await $fetch('/api/update-interest', {
method: 'POST',
headers: {
'x-tag': user.value?.email ? "094ut234" : "pjnvü1230",
},
body: {
id: interestId,
data: {
'Sales Process Level': targetLevel
'Sales Process Level': targetLevel as InterestSalesProcessLevel
}
}
});
@@ -419,7 +413,7 @@ const handleDrop = async (event: DragEvent, targetLevel: string) => {
// Update local data
const interestIndex = interests.value?.list.findIndex(i => i.Id === interestId);
if (interestIndex !== undefined && interestIndex !== -1 && interests.value) {
interests.value.list[interestIndex]['Sales Process Level'] = targetLevel;
interests.value.list[interestIndex]['Sales Process Level'] = targetLevel as InterestSalesProcessLevel;
}
// Show success message