Skip to content

Commit

Permalink
fix: args order
Browse files Browse the repository at this point in the history
  • Loading branch information
wkolod committed Jan 27, 2023
1 parent 84ba84d commit 27ce377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ const folderArray = await akord.folder.list(vaultId);

### note

#### `create(vaultId, name, content, parentId)`
#### `create(vaultId, content, name, parentId)`

- `vaultId` (`string`, required)
- `content` (`string`, required) - note text content, ex: stringified JSON
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/batch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe("Testing batch actions", () => {
const name = faker.random.words();
const content = faker.lorem.sentences();

noteId = (await akord.note.create(vaultId, name, content)).noteId;
noteId = (await akord.note.create(vaultId, content, name)).noteId;

const note = await akord.note.get(noteId);
expect(note.versions.length).toEqual(1);
Expand Down

0 comments on commit 27ce377

Please sign in to comment.