Skip to content

Commit

Permalink
fix: taskId missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogtiti committed May 5, 2023
1 parent 3f3ecf7 commit 1ee4654
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 28 deletions.
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ model Agent {

model AgentTask {
id String @id @default(cuid())
taskId String?
parentTaskId String?
agentId String
type String
Expand Down
23 changes: 0 additions & 23 deletions src/pages/agent/[...agent].tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/pages/agent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const AgentPage: NextPage = () => {
</div>
<Toast
model={[showCopied, setShowCopied]}
title={`${t("copied")} 🚀}`}
title={`${t("copied")} 🚀`}
className="bg-gray-950 text-sm"
/>
</DefaultLayout>
Expand Down
4 changes: 0 additions & 4 deletions src/pages/api/reponses.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/server/api/routers/agentRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const agentRouter = createTRPCRouter({
return prisma.agentTask.create({
data: {
agentId: agent.id,
taskId: e.taskId,
parentTaskId: e.parentTaskId,
type: e.type,
...(e.type === MESSAGE_TYPE_TASK && { status: e.status }),
Expand Down

0 comments on commit 1ee4654

Please sign in to comment.