Skip to content

Commit

Permalink
fix: update method to use object.update etc
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 30, 2023
1 parent 887cf12 commit ab9bacb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function createKeyPair() {
keyPairs.set(keyPair._id, keyPair);

// crud.send({
// method: 'create.object',
// method: 'object.create',
// array: 'keys',
// object: {
// ...keyPair,
Expand All @@ -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: {
Expand All @@ -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,
Expand Down

0 comments on commit ab9bacb

Please sign in to comment.