Skip to content

Commit 3a56084

Browse files
DOC-4345 added try...catch around index deletion
1 parent 127dc2a commit 3a56084

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doctests/home-json.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ const client = await createClient();
1616
await client.connect();
1717
// STEP_END
1818
// REMOVE_START
19-
await client.ft.dropIndex('idx:users', { DD: true });
19+
try {
20+
await client.ft.dropIndex('idx:users', { DD: true });
21+
} catch{}
22+
2023
await client.del('user:1', 'user:2', 'user:3');
2124
// REMOVE_END
2225

0 commit comments

Comments
 (0)