Change updateId to uid because apparently that's the new name
authorEkaterina Vaartis <vaartis@kotobank.ch>
Tue, 22 Mar 2022 17:45:49 +0000 (20:45 +0300)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 29 Jun 2022 19:49:45 +0000 (20:49 +0100)
lib/mix/tasks/pleroma/search/meilisearch.ex
lib/pleroma/search/meilisearch.ex

index db56876fa5818e9e0ad9815c5dbabfaa21d11aad..d4a83c3cdb62747a39ca7c3efce0019bbacbb30d 100644 (file)
@@ -91,7 +91,7 @@ defmodule Mix.Tasks.Pleroma.Search.Meilisearch do
             )
 
           with {:ok, res} <- result do
-            if not Map.has_key?(res, "updateId") do
+            if not Map.has_key?(res, "uid") do
               IO.puts("\nFailed to index: #{inspect(result)}")
             end
           else
index 0f9182ffc5bbba069b960ecdd4e4b2e80c55d445..3db65f261c8e9166010a74d595162cd857b19406 100644 (file)
@@ -153,7 +153,7 @@ defmodule Pleroma.Search.Meilisearch do
         )
 
       with {:ok, res} <- result,
-           true <- Map.has_key?(res, "updateId") do
+           true <- Map.has_key?(res, "uid") do
         # Do nothing
       else
         _ ->