fix(typesense): use upsert instead of emplace when updating tasks in typesense

Resolves https://github.com/go-vikunja/vikunja/issues/376
This commit is contained in:
kolaente 2025-03-23 18:46:49 +01:00
parent bbd9d0d0b3
commit 8489cf57f6
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ func reindexTasksInTypesense(s *xorm.Session, tasks map[int64]*Task) (err error)
response, err := typesenseClient.Collection("tasks").
Documents().
Import(context.Background(), typesenseTasks, &api.ImportDocumentsParams{
Action: pointer.String("emplace"),
Action: pointer.String("upsert"),
BatchSize: pointer.Int(100),
})
if err != nil {