New image. Update some vars
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m4s

This commit is contained in:
2024-05-02 20:09:41 -04:00
parent 5792e80112
commit c92f737612
7 changed files with 40 additions and 30 deletions

View File

@@ -48,7 +48,7 @@ export const useTaskStore = defineStore('tasks', {
await this.fetchSkillTags();
const response = await databases.listDocuments(
AppwriteIds.databaseId,
AppwriteIds.collectionIdTask
AppwriteIds.collection.task
);
this.tasks = response.documents as Task[];
} catch (error) {
@@ -60,7 +60,7 @@ export const useTaskStore = defineStore('tasks', {
try {
const response = await databases.listDocuments(
AppwriteIds.databaseId,
AppwriteIds.collectionIdTaskTags
AppwriteIds.collection.taskTags
);
this.taskTags = response.documents as TaskTag[];
} catch (error) {
@@ -72,7 +72,7 @@ export const useTaskStore = defineStore('tasks', {
try {
const response = await databases.listDocuments(
AppwriteIds.databaseId,
AppwriteIds.collectionIdSkillTags
AppwriteIds.collection.skillTags
);
this.skillTags = response.documents as SkillTag[];
} catch (error) {
@@ -88,7 +88,7 @@ export const useTaskStore = defineStore('tasks', {
try {
const response = await databases.deleteDocument(
AppwriteIds.databaseId,
AppwriteIds.collectionIdTask,
AppwriteIds.collection.task,
docId
);
this.tasks = this.tasks.filter((task) => docId !== task.$id);
@@ -102,7 +102,7 @@ export const useTaskStore = defineStore('tasks', {
try {
const response = await databases.createDocument(
AppwriteIds.databaseId,
AppwriteIds.collectionIdTask,
AppwriteIds.collection.task,
ID.unique(),
newTask
);
@@ -125,7 +125,7 @@ export const useTaskStore = defineStore('tasks', {
try {
const response = await databases.updateDocument(
AppwriteIds.databaseId,
AppwriteIds.collectionIdTask,
AppwriteIds.collection.task,
task.$id,
newTask
);