Skip to content

Commit

Permalink
Update README.md (#68)
Browse files Browse the repository at this point in the history
update code sample
  • Loading branch information
JEverhart383 authored Apr 12, 2024
1 parent 10a26b6 commit 3ad0caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const { Knock } = require("@knocklabs/node");
const knockClient = new Knock("sk_12345");

// The key of the workflow (from Knock dashboard)
await knockClient.notify("dinosaurs-loose", {
await knockClient.workflows.trigger("dinosaurs-loose", {
// user id of who performed the action
actor: "dnedry",
// list of user ids for who should receive the notification
Expand Down

0 comments on commit 3ad0caf

Please sign in to comment.