Issue with updatedAt
field showing incorrect values in document list
#253
Labels
bug 🐞
Something isn't working
updatedAt
field showing incorrect values in document list
#253
What happened:
There is an issue with the
updatedAt
of a document showing another documentupdatedAt
. Specifically, theupdatedAt
in the document list is being reversed and reflecting a different document's value.This issue occurs during the bulk retrieval of document lists using this patch. In this process, there is no guarantee that the order of the keys passed to the DB query matches the order of the documents in the query result.
What you expected to happen:
The
updatedAt
field in the document list should accurately reflect theupdatedAt
of each respective document.How to reproduce it (as minimally and precisely as possible):
updatedAt
fields in the document list with the actualupdatedAt
values of the documents.Anything else we need to know?:
I think this issue should be handled on the client side, because the query result(document list) from the server may not always contain all the documents of given keys.
For example, when document keys [1, 2, 3] are passed to the server and document 2 does not exist, result should be [1, 3].
Environment:
The text was updated successfully, but these errors were encountered: