Skip to content

Commit bd2e04d

Browse files
ShelbyZdkundel
authored andcommitted
fix(runtime): fix wrong service name in getSync (#14)
* Fixing function path to include absolute * Fixing issue with getSync in runtime - needed default serviceName not object destructuring * Updating based on feedback
1 parent 3942fdf commit bd2e04d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/internal/runtime.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ function getFunctions() {
5151
}
5252

5353
function create({ env }) {
54-
function getSync({ serviceName = 'default' }) {
54+
function getSync(syncService) {
55+
const syncInfo = syncService || { serviceName: 'default' };
5556
const client = twilio(env.ACCOUNT_SID, env.AUTH_TOKEN);
56-
return client.sync.services(serviceName);
57+
return client.sync.services(syncInfo.serviceName);
5758
}
5859

5960
return { getSync, getAssets, getFunctions };

0 commit comments

Comments
 (0)