Added Update Emit after Phase Change

This commit is contained in:
2025-01-18 21:05:27 +01:00
parent e71281dcee
commit bec94e4c6a

View File

@@ -101,13 +101,20 @@ const changeActivePhase = async (key) => {
return p
})
await supabase.from("projects").update({phases: item.phases}).eq("id",item.id)
const {error:updateError} = await supabase.from("projects").update({phases: item.phases}).eq("id",item.id)
console.log(updateError)
const {error} = await supabase.from("historyitems").insert({
createdBy: profileStore.activeProfile.id,
tenant: profileStore.currentTenant,
text: `Aktive Phase zu "${phaseLabel}" gewechselt`,
project: item.id
})
emit("updateNeeded")
}
const invoiceDeliveryNotes = () => {