Specify primary key

This commit is contained in:
PrivateGER 2023-05-26 00:04:07 +02:00 committed by PrivateGER
parent 856b05303b
commit dae4f58e4c
1 changed files with 3 additions and 1 deletions

View File

@ -138,7 +138,9 @@ export default hasConfig ? {
logger.info("Indexing notes in MeiliSearch: " + indexingIDs.join(","));
return posts.addDocuments(indexingBatch);
return posts.addDocuments(indexingBatch, {
primaryKey: "id"
});
},
serverStats: async () => {
let health : Health = await client.health();