ready to merge and ready to discard as states
This commit is contained in:
@@ -27,6 +27,10 @@ func (s *Store) CreateInboxItem(ctx context.Context, item api.InboxItem) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = tx.ExecContext(ctx, `UPDATE tasks SET ready = '' WHERE id = ?`, item.TaskId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return emitItem(ctx, tx, emit, "inbox.created", item.Id, agentActor)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user