Specify primary key

This commit is contained in:
PrivateGER 2023-05-26 00:04:07 +02:00 committed by PrivateGER
parent 856b05303b
commit dae4f58e4c

View file

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