Skip to content

Commit

Permalink
Fix readme (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
dorsha authored Apr 11, 2024
1 parent 70a50f9 commit 8b52277
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1073,12 +1073,15 @@ console.log(audits);

You can also create audit event with data

```go
```typescript
await descopeClient.management.audit.createEvent({
action: "pencil.created",
type: "info", // info/warn/error
actorId: "UXXX",
tenantId: "tenant-id"
action: 'pencil.created',
type: 'info', // info/warn/error
actorId: 'UXXX',
tenantId: 'tenant-id',
data: {
some: 'data',
},
});
```

Expand Down

0 comments on commit 8b52277

Please sign in to comment.