Skip to content

Commit

Permalink
Fix to prevent sync.services deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
stevennic-twilio committed Nov 29, 2023
1 parent b498f6f commit d5df90d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 d5df90d

Please sign in to comment.