Skip to content

Commit 222430f

Browse files
committed
Use shorthand property for authconfig
1 parent d04c185 commit 222430f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/docker-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ export async function upsertServices ({dockerode, config, current, appName, hash
124124
const foundService = current.services.find((s) => s.Spec?.Name === `${appName}_${serviceName}`);
125125
if (!foundService) {
126126
console.log(`Creating service ${appName}_${serviceName}`);
127-
await dockerode.createService({...serviceSpec, authconfig: authconfig});
127+
await dockerode.createService({...serviceSpec, authconfig});
128128
} else {
129129
serviceSpec.version = foundService.Version?.Index ?? 0;
130130
console.log(`Updating service ${appName}_${serviceName}`);
131-
await dockerode.getService(foundService.ID).update({...serviceSpec, authconfig: authconfig});
131+
await dockerode.getService(foundService.ID).update({...serviceSpec, authconfig});
132132
}
133133
}
134134
}

0 commit comments

Comments
 (0)