Commit 68b3cce0 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: query memory

parent d361404a
...@@ -529,8 +529,8 @@ ...@@ -529,8 +529,8 @@
}); });
if (res) { if (res) {
if (res.documents[0].length > 0) { if (res.documents[0].length > 0) {
userContext = res.documents.reduce((acc, doc, index) => { userContext = res.documents[0].reduce((acc, doc, index) => {
const createdAtTimestamp = res.metadatas[index][0].created_at; const createdAtTimestamp = res.metadatas[0][index].created_at;
const createdAtDate = new Date(createdAtTimestamp * 1000) const createdAtDate = new Date(createdAtTimestamp * 1000)
.toISOString() .toISOString()
.split('T')[0]; .split('T')[0];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment