This commit is contained in:
2024-12-01 13:44:38 +01:00
parent 9993217ed1
commit a6712f7c98
5 changed files with 17 additions and 4 deletions

View File

@@ -26,7 +26,9 @@ const items = ref([])
const setup = async () => {
if(type === "customer") {
items.value = (await supabase.from("historyitems").select().eq(type,elementId).order("created_at",{ascending: true})).data || []
/*if(type === "customer") {
items.value = (await supabase.from("historyitems").select().eq("customer",elementId)).data || []
} else if(type === "vendor") {
items.value = (await supabase.from("historyitems").select().eq("vendor",elementId)).data || []
@@ -60,7 +62,7 @@ const setup = async () => {
items.value = (await supabase.from("historyitems").select().eq("space",elementId)).data || []
} else if(type === "trackingtrip") {
items.value = (await supabase.from("historyitems").select().eq("trackingtrip",elementId)).data || []
}
}*/
}
setup()