Skip to content

Commit

Permalink
Update actions.mdx (#769)
Browse files Browse the repository at this point in the history
Took types out of js example of file-mounted action
  • Loading branch information
elisadinsmore authored Sep 13, 2023
1 parent 4db0177 commit d88e980
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guides/actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -347,22 +347,22 @@ listener.filter({ job: "file:decryptAction" }, (configure) => {
);
});

async function acknowledgeJob(jobId: string, info: string, progress: number) {
async function acknowledgeJob(jobId, info, progress) {
await api.jobs.ack(jobId, {
info,
progress,
});
}

async function completeJob(jobId: string, message: string) {
async function completeJob(jobId, message) {
await api.jobs.complete(jobId, {
outcome: {
message,
},
});
}

async function failJob(jobId: string, message: string) {
async function failJob(jobId, message) {
await api.jobs.fail(jobId, {
outcome: {
message,
Expand Down

0 comments on commit d88e980

Please sign in to comment.