fix: project_id in board schema and fixed get mixin
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from typing import Generic, TypeVar, Type, Optional, overload
|
||||
from typing import Generic, TypeVar, Type, Optional
|
||||
|
||||
from sqlalchemy import select, Select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
@ -64,7 +64,7 @@ class GetAllMixin(RepBaseMixin[EntityType]):
|
||||
return stmt
|
||||
|
||||
async def get_all(self, *args) -> list[EntityType]:
|
||||
stmt = select(self.entity_class).order_by(self.entity_class.id)
|
||||
stmt = select(self.entity_class)
|
||||
if hasattr(self, "is_deleted"):
|
||||
stmt = stmt.where(self.entity_class.is_deleted.is_(False))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user