Skip to content

Commit eae0cb1

Browse files
committed
refactor(LSG): improve access modifier consistency
1 parent 3252531 commit eae0cb1

16 files changed

+30
-30
lines changed

packages/live-status-gateway/src/collections/adLibActionsHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class AdLibActionsHandler
4848
}
4949
}
5050

51-
protected updateAndNotify(): void {
51+
private updateAndNotify(): void {
5252
const col = this.getCollectionOrFail()
5353
this._collectionData = col.find({ rundownId: this._currentRundownId })
5454
this.notify(this._collectionData)

packages/live-status-gateway/src/collections/adLibsHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class AdLibsHandler
2727
handlers.playlistHandler.subscribe(this.onPlaylistUpdate, PLAYLIST_KEYS)
2828
}
2929

30-
changed(): void {
30+
protected changed(): void {
3131
this.updateAndNotify()
3232
}
3333

@@ -47,7 +47,7 @@ export class AdLibsHandler
4747
}
4848
}
4949

50-
protected updateAndNotify(): void {
50+
private updateAndNotify(): void {
5151
const collection = this.getCollectionOrFail()
5252
this._collectionData = collection.find({ rundownId: this._currentRundownId })
5353
this.notify(this._collectionData)

packages/live-status-gateway/src/collections/globalAdLibActionsHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class GlobalAdLibActionsHandler
3636
handlers.playlistHandler.subscribe(this.onPlaylistUpdate, PLAYLIST_KEYS)
3737
}
3838

39-
changed(): void {
39+
protected changed(): void {
4040
this.updateAndNotify()
4141
}
4242

@@ -55,7 +55,7 @@ export class GlobalAdLibActionsHandler
5555
}
5656
}
5757

58-
protected updateAndNotify(): void {
58+
private updateAndNotify(): void {
5959
const collection = this.getCollectionOrFail()
6060
this._collectionData = collection.find({ rundownId: this._currentRundownId })
6161
this.notify(this._collectionData)

packages/live-status-gateway/src/collections/globalAdLibsHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class GlobalAdLibsHandler
3131
handlers.playlistHandler.subscribe(this.onPlaylistUpdate, PLAYLIST_KEYS)
3232
}
3333

34-
changed(): void {
34+
protected changed(): void {
3535
this.updateAndNotify()
3636
}
3737

@@ -50,7 +50,7 @@ export class GlobalAdLibsHandler
5050
}
5151
}
5252

53-
protected updateAndNotify(): void {
53+
private updateAndNotify(): void {
5454
const collection = this.getCollectionOrFail()
5555
this._collectionData = collection.find({ rundownId: this._currentRundownId })
5656
this.notify(this._collectionData)

packages/live-status-gateway/src/collections/partHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class PartHandler
3434
handlers.partInstancesHandler.subscribe(this.onPartInstanceUpdate, PART_INSTANCES_KEYS)
3535
}
3636

37-
changed(): void {
37+
protected changed(): void {
3838
const collection = this.getCollectionOrFail()
3939
const allParts = collection.find(undefined)
4040
this._partsHandler.setParts(allParts)

packages/live-status-gateway/src/collections/partInstancesHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class PartInstancesHandler
5959
handlers.playlistHandler.subscribe(this.onPlaylistUpdate, PLAYLIST_KEYS)
6060
}
6161

62-
changed(): void {
62+
protected changed(): void {
6363
this._throttledUpdateAndNotify()
6464
}
6565

packages/live-status-gateway/src/collections/pieceInstancesHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class PieceInstancesHandler
7676
handlers.showStyleBaseHandler.subscribe(this.onShowStyleBaseUpdate, SHOW_STYLE_BASE_KEYS)
7777
}
7878

79-
changed(): void {
79+
protected changed(): void {
8080
this.updateAndNotify()
8181
}
8282

packages/live-status-gateway/src/collections/playlistHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ export class PlaylistHandler
3737
this.setupSubscription(null, [this._studioId])
3838
}
3939

40-
changed(): void {
40+
protected changed(): void {
4141
this.updateAndNotify()
4242
}
4343

44-
protected updateAndNotify(): void {
44+
private updateAndNotify(): void {
4545
const collection = this.getCollectionOrFail()
4646
const playlists = collection.find(undefined)
4747
this._playlistsHandler.setPlaylists(playlists)

packages/live-status-gateway/src/collections/rundownHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export class RundownHandler
3030
handlers.playlistHandler.subscribe(this.onPlaylistUpdate, PLAYLIST_KEYS)
3131
}
3232

33-
changed(): void {
33+
protected changed(): void {
3434
this.updateAndNotify()
3535
}
3636

37-
protected updateAndNotify(): void {
37+
private updateAndNotify(): void {
3838
const collection = this.getCollectionOrFail()
3939
this._rundownsHandler?.setRundowns(collection.find(undefined))
4040
if (this._currentRundownId) {

packages/live-status-gateway/src/collections/segmentHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class SegmentHandler
3535
handlers.partInstancesHandler.subscribe(this.onPartInstancesUpdate, PART_INSTANCES_KEYS)
3636
}
3737

38-
changed(): void {
38+
protected changed(): void {
3939
this.updateAndNotify()
4040
}
4141

0 commit comments

Comments
 (0)