New Backend changes
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<script setup>
|
||||
|
||||
const openTasks = ref([])
|
||||
const supabase = useSupabaseClient()
|
||||
const router = useRouter()
|
||||
|
||||
const auth = useAuthStore()
|
||||
|
||||
const setupPage = async () => {
|
||||
openTasks.value = (await supabase.from("tasks").select().eq("tenant",useProfileStore().currentTenant).not("archived","is",true).neq("categorie","Abgeschlossen").eq("profile", useProfileStore().activeProfile.id)).data
|
||||
//TODO: BACKEND CHANGE Migrate to auth_users for profile
|
||||
openTasks.value = (await useEntities("tasks").select().filter(i => !i.archived && i.user_id === auth.user.id))
|
||||
}
|
||||
|
||||
setupPage()
|
||||
|
||||
Reference in New Issue
Block a user