feat: Added the ability to delete task lists
Build and Push App Image / build-and-push (push) Successful in 1m48s
Build and Push App Image / build-and-push (push) Successful in 1m48s
This commit is contained in:
1 parent
b9ca845b9c
commit
b09137eca5
5 files changed
+62
-6
No files matched your search
@@ -95,6 +95,11 @@ func (r *TaskRepository) DeleteTask(ctx context.Context, id bson.ObjectID) error
|
||||
return err
|
||||
}
|
||||
|
||||
func (r *TaskRepository) DeleteTasksByTaskListID(ctx context.Context, taskListID bson.ObjectID) error {
|
||||
_, err := r.collection.DeleteMany(ctx, bson.M{"task_list_id": taskListID})
|
||||
return err
|
||||
}
|
||||
|
||||
func (r *TaskRepository) DeleteTasksBySpaceID(ctx context.Context, spaceID bson.ObjectID) error {
|
||||
_, err := r.collection.DeleteMany(ctx, bson.M{"space_id": spaceID})
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user