Skip to content

Commit

Permalink
fix(forge): Change task_id parameter on AgentDB.get_task from `in…
Browse files Browse the repository at this point in the history
…t` to `str`

The `task_id` parameter was incorrectly typed as `int`: the database column is type `String`.
  • Loading branch information
Pwuts committed Dec 8, 2023
1 parent a17f752 commit f734bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogpts/forge/forge/sdk/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ async def create_artifact(
LOG.error(f"Unexpected error while creating step: {e}")
raise

async def get_task(self, task_id: int) -> Task:
async def get_task(self, task_id: str) -> Task:
"""Get a task by its id"""
if self.debug_enabled:
LOG.debug(f"Getting task with task_id: {task_id}")
Expand Down

0 comments on commit f734bdb

Please sign in to comment.