1
0

fix(typesense): reindex tasks when their position changed

This commit is contained in:
kolaente
2024-07-11 12:07:48 +02:00
parent 0b424fe95e
commit 471d0fcd4a
3 changed files with 52 additions and 1 deletions

View File

@ -166,6 +166,16 @@ func (t *TaskRelationDeletedEvent) Name() string {
return "task.relation.deleted"
}
// TaskPositionsRecalculatedEvent represents a TaskPositionsRecalculatedEvent event
type TaskPositionsRecalculatedEvent struct {
NewTaskPositions []*TaskPosition
}
// Name defines the name for TaskPositionsRecalculatedEvent
func (t *TaskPositionsRecalculatedEvent) Name() string {
return "task.positions.recalculated"
}
////////////////////
// Project Events //
////////////////////