service: Fix typo and type errors

Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
This commit is contained in:
Pablo Carranza Velez 2018-10-17 11:34:13 +02:00
parent 87a8d8f8f4
commit 047ca2ae68

View File

@ -658,13 +658,13 @@ export class Service {
public handoverCompleteFullPathsOnHost(): string[] {
return [
path.join(handoverCompletePathOnHost(), 'handover-complete'),
path.join(handoverCompletePathOnHost(), 'resin-kill-me'),
path.join(this.handoverCompletePathOnHost(), 'handover-complete'),
path.join(this.handoverCompletePathOnHost(), 'resin-kill-me'),
];
}
private handoverCompletePathOnHost(): string {
return path.join(constants.rootMountPoint, updateLock.lockPath(this.appId, this.serviceName));
return path.join(constants.rootMountPoint, updateLock.lockPath(this.appId || 0, this.serviceName || ''));
}
private getBindsAndVolumes(): {