Skip to content

Commit

Permalink
Minor fix - set "Name" on corpus to null if it doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Jan 21, 2025
1 parent 4c07449 commit 910c88f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ await c.Indexes.CreateOrUpdateAsync(
// migrate by adding Name field
await c.UpdateManyAsync(
Builders<Corpus>.Filter.Exists(b => b.Name, false),
Builders<Corpus>.Update.Set(b => b.Name, "")
Builders<Corpus>.Update.Set(b => b.Name, null)
);
}
);
Expand Down

0 comments on commit 910c88f

Please sign in to comment.