Commit d58e16f
refactor(typesense): remove unused exists checks (#847)
* refactor(typesense): remove unused exists checks
In #820 we introduced an exists check method, which then lead to static state issues as described in #845
Those where addressed in #846
But now that the function always double-checks the existence, we can remove the exists check entirely and only rely on the Typesense server response for this state.
This "fixes" issues where the server already has a collection and the client would try to recreate it. E.g. when it has flushed the index and another process or worker then creates the collection.
* Update TypesenseEngine.php
---------
Co-authored-by: Taylor Otwell <[email protected]>1 parent 0a6bbc4 commit d58e16f
1 file changed
+10
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
501 | | - | |
| 501 | + | |
| 502 | + | |
502 | 503 | | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
511 | 507 | | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
| 508 | + | |
| 509 | + | |
517 | 510 | | |
518 | | - | |
519 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
520 | 514 | | |
521 | 515 | | |
522 | 516 | | |
| |||
0 commit comments