Skip to content

Commit 286cd28

Browse files
chore: cleanup gh entity store
1 parent f4fe4c1 commit 286cd28

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

apps/workspace-engine/pkg/workspace/populate_workspace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func PopulateWorkspaceWithInitialState(ctx context.Context, ws *Workspace) error
5656
}
5757
}
5858
for _, githubEntity := range initialWorkspaceState.GithubEntities() {
59-
if err := ws.Store().GithubEntities.Upsert(ctx, githubEntity); err != nil {
59+
if err := ws.GithubEntities().Upsert(ctx, githubEntity); err != nil {
6060
return err
6161
}
6262
}

apps/workspace-engine/pkg/workspace/workspace.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ func (w *Workspace) Releases() *store.Releases {
9494
return w.store.Releases
9595
}
9696

97+
func (w *Workspace) GithubEntities() *store.GithubEntities {
98+
return w.store.GithubEntities
99+
}
100+
97101
func (w *Workspace) GobEncode() ([]byte, error) {
98102
return w.store.GobEncode()
99103
}

0 commit comments

Comments
 (0)