Skip to content

Commit 469b02d

Browse files
authored
chore: update readme with awaits
1 parent 4b558c9 commit 469b02d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const template = await fern.templates.get({
5858

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

7171
// You can build as many snippets as you'd like!
72-
const snippet2 = template.resolve({
72+
const snippet2 = await template.resolve({
7373
pathParameters: [{
7474
name: "someFilter",
7575
value: "anotherTest"

0 commit comments

Comments
 (0)