feat: search bar working, still in progress

This commit is contained in:
Daniel Avila 2023-03-18 01:40:49 -04:00
parent 610cba4a60
commit 0f54ffd8b4
10 changed files with 147 additions and 24 deletions

View file

@ -85,12 +85,6 @@ const createMeiliMongooseModel = function ({ index, indexName, client, attribute
// Push new document to Meili
async addObjectToMeili() {
const object = _.pick(this.toJSON(), attributesToIndex);
// const title = (await this.getTitle()) || 'New Chat'; // Get title value
// const objectWithTitle = {
// ...this.toJSON(),
// title
// };
// const object = _.pick(objectWithTitle, attributesToIndex); // Pick desired attributes
try {
// console.log('Adding document to Meili', object);