Skip to content

Commit

Permalink
feat: [#38] rename attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
yeraydavidrodriguez committed May 4, 2022
1 parent bcb2575 commit 4c42ce7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import {NO_JOB_ID} from './job'
export abstract class Message {
payload: string
jobRef: CommitHash
id: number
jobId: number

constructor(
payload: string,
jobRef: CommitHash = nullCommitHash(),
id: number
jobId: number
) {
this.payload = payload
this.jobRef = jobRef
this.id = id
this.jobId = jobId
}

getPayload(): string {
Expand All @@ -26,15 +26,15 @@ export abstract class Message {
}

getId(): number {
return this.id
return this.jobId
}

hasJobRef(): boolean {
return !this.jobRef.isNull()
}

hasId(): boolean {
return this.id !== NO_JOB_ID
return this.jobId !== NO_JOB_ID
}

abstract getKey(): MessageKey
Expand Down

0 comments on commit 4c42ce7

Please sign in to comment.