From ab9bacb163d67ab3d7947a49ae94b6d92fbe3dda Mon Sep 17 00:00:00 2001 From: frankpagan Date: Mon, 30 Oct 2023 02:44:13 -0600 Subject: [PATCH] fix: update method to use object.update etc --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 047eb15..46a887b 100644 --- a/src/index.js +++ b/src/index.js @@ -41,7 +41,7 @@ function createKeyPair() { keyPairs.set(keyPair._id, keyPair); // crud.send({ - // method: 'create.object', + // method: 'object.create', // array: 'keys', // object: { // ...keyPair, @@ -55,7 +55,7 @@ function createKeyPair() { // Function to retrieve keys from the database (example using CRUD operations) function readKeyPairs() { const keys = crud.send({ - method: 'read.object', + method: 'object.read', array: 'keys', object: { $filter: { @@ -79,7 +79,7 @@ function readKeyPairs() { function deleteKeyPair(keyPair) { keyPairs.delete(keyPair._id) // crud.send({ - // method: 'delete.object', + // method: 'object.delete', // array: 'keys', // object: { // _id: keyPair._id,