Skip to content

Commit

Permalink
Fix fully qualified service name when package is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanEwen committed Aug 20, 2023
1 parent 75a86f8 commit eec3ea2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/state_machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,11 @@ export class StateMachine<I, O> implements RestateStreamConsumer {
}

public getFullServiceName(): string {
return `${this.invocation.method.packge}.${this.invocation.method.service}`;
if (this.invocation.method.packge) {
return `${this.invocation.method.packge}.${this.invocation.method.service}`;
} else {
return this.invocation.method.service;
}
}

public handleInputClosed(): void {
Expand Down

0 comments on commit eec3ea2

Please sign in to comment.