Skip to content

Commit

Permalink
Fix to prevent sync.services deprecation notice (#487)
Browse files Browse the repository at this point in the history
* Fix to prevent sync.services deprecation notice

* fix(@twilio/runtime-handler): add changeset

fix(twilio-run): add changeset

---------

Co-authored-by: Victor A <[email protected]>
  • Loading branch information
stevennic-twilio and victoray authored Apr 4, 2024
1 parent 6cb12dd commit cdf9e3a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/calm-hairs-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@twilio/runtime-handler': patch
'twilio-run': patch
---

Fix sync.services deprecation warning
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function create({
env.AUTH_TOKEN,
options
);
const service = client.sync.services(
const service = client.sync.v1.services(
serviceName || 'default'
) as RuntimeSyncServiceContext;

Expand Down
2 changes: 1 addition & 1 deletion packages/twilio-run/src/runtime/internal/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function create({ env }: StartCliConfig): RuntimeInstance {
.join(',')})`,
});
const client = twilio(env.ACCOUNT_SID, env.AUTH_TOKEN, options);
const service = (client.sync.services(
const service = (client.sync.v1.services(
serviceName || 'default'
) as unknown) as RuntimeSyncServiceContext;

Expand Down

0 comments on commit cdf9e3a

Please sign in to comment.