diff --git a/src/backend/app/db/db_models.py b/src/backend/app/db/db_models.py index 91347166f5..f348135121 100644 --- a/src/backend/app/db/db_models.py +++ b/src/backend/app/db/db_models.py @@ -638,7 +638,5 @@ class DbTilesPath(Base): status = Column(Enum(BackgroundTaskStatus), nullable=False) path = Column(String) tile_source = Column(String) - task_id = Column(String) - created_at = Column(DateTime, default=timestamp) - created_by_id = Column(BigInteger, ForeignKey("users.id"), primary_key=True) - created_by = relationship(DbUser, backref="user_roles") + background_task_id = Column(String) + created_at = Column(DateTime, default=timestamp) \ No newline at end of file diff --git a/src/backend/app/projects/project_crud.py b/src/backend/app/projects/project_crud.py index dd3dfe5ba9..9c9dd96136 100644 --- a/src/backend/app/projects/project_crud.py +++ b/src/backend/app/projects/project_crud.py @@ -2107,7 +2107,7 @@ async def get_project_tiles(db: Session, tile_path_instance = db_models.DbTilesPath( project_id = project_id, - task_id = str(background_task_id), + background_task_id = str(background_task_id), status = 1, tile_source = source, path = outfile