Skip to content

Commit

Permalink
SerializedComponentDiff::index_diff is optional (#29976)
Browse files Browse the repository at this point in the history
there are some audit log documents where this field is missing. we could migrate them to have the field, but it's easier to accept that they might not exist and handle it. Should fix db-verifier and also dashboard for these instances.

GitOrigin-RevId: 5dbd45b2b4e620a14e3cc9c3b5939dd0cb1416d0
  • Loading branch information
ldanilek authored and Convex, Inc. committed Sep 19, 2024
1 parent 468851e commit 81942ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/lib/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ function printDiff(

// Print out index diffs for the root component.
let rootDiff = componentDiffs[""];
if (rootDiff) {
if (rootDiff && rootDiff.indexDiff) {
if (rootDiff.indexDiff.removed_indexes.length > 0) {
let msg = `${opts.dryRun ? "Would delete" : "Deleted"} table indexes:\n`;
for (let i = 0; i < rootDiff.indexDiff.removed_indexes.length; i++) {
Expand Down

0 comments on commit 81942ae

Please sign in to comment.