Skip to content

Commit 9f6ba86

Browse files
committed
fix: repository groups updating
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
1 parent 3ff5798 commit 9f6ba86

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

backend/src/services/collectionService.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,7 @@ export class CollectionService extends LoggerBase {
250250
)
251251
}
252252

253-
if (project.repositoryGroups) {
254-
await this.syncRepositoryGroupsWithDb(qx, createdProject.id, project.repositoryGroups)
255-
}
253+
await this.syncRepositoryGroupsWithDb(qx, createdProject.id, project.repositoryGroups)
256254

257255
const txSvc = new CollectionService({ ...this.options, transaction: tx })
258256

@@ -415,9 +413,8 @@ export class CollectionService extends LoggerBase {
415413
})),
416414
)
417415
}
418-
if (project.repositoryGroups) {
419-
await this.syncRepositoryGroupsWithDb(qx, insightsProjectId, project.repositoryGroups)
420-
}
416+
417+
await this.syncRepositoryGroupsWithDb(qx, insightsProjectId, project.repositoryGroups)
421418

422419
const txSvc = new CollectionService({
423420
...this.options,

0 commit comments

Comments
 (0)