updated models/services/tests to include user_id

This commit is contained in:
Michael Genson
2024-02-23 17:02:32 +00:00
parent 74d6f58363
commit 0bf3aed287
7 changed files with 19 additions and 12 deletions

View File

@@ -89,7 +89,7 @@ def publish_list_item_events(publisher: Callable, items_collection: ShoppingList
class ShoppingListItemController(BaseCrudController):
@cached_property
def service(self):
return ShoppingListService(self.repos, self.group)
return ShoppingListService(self.repos, self.group, self.user)
@cached_property
def repo(self):
@@ -154,7 +154,7 @@ router = APIRouter(prefix="/groups/shopping/lists", tags=["Group: Shopping Lists
class ShoppingListController(BaseCrudController):
@cached_property
def service(self):
return ShoppingListService(self.repos, self.group)
return ShoppingListService(self.repos, self.group, self.user)
@cached_property
def repo(self):