Update main.go

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Icereed 2025-01-07 16:43:09 +01:00 committed by GitHub
parent 29960013ca
commit b7535cd312
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -344,7 +344,7 @@ func validateOrDefaultEnvVars() {
func (app *App) processAutoTagDocuments() (int, error) { func (app *App) processAutoTagDocuments() (int, error) {
ctx := context.Background() ctx := context.Background()
documents, err := app.Client.GetDocumentsByTags(ctx, []string{autoTag}, 1) documents, err := app.Client.GetDocumentsByTags(ctx, []string{autoTag}, 1, 25)
if err != nil { if err != nil {
return 0, fmt.Errorf("error fetching documents with autoTag: %w", err) return 0, fmt.Errorf("error fetching documents with autoTag: %w", err)
} }