Skip to content

Commit

Permalink
chore: update readme with awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Oct 17, 2024
1 parent 4b558c9 commit 469b02d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const template = await fern.templates.get({

// Build a snippet with a payload, this happens on the client side,
// without need for another API call, improving latency dramatically.
const snippet1 = template.resolve({
const snippet1 = await template.resolve({
pathParameters: [{
name: "someFilter",
value: "test1"
Expand All @@ -69,7 +69,7 @@ const snippet1 = template.resolve({
})

// You can build as many snippets as you'd like!
const snippet2 = template.resolve({
const snippet2 = await template.resolve({
pathParameters: [{
name: "someFilter",
value: "anotherTest"
Expand Down

0 comments on commit 469b02d

Please sign in to comment.