Merge pull request #3368 from specklesystems/fabians/core-ioc-100

chore(server): core IoC #100 - rename
This commit is contained in:
Alessandro Magionami
2024-10-22 11:20:13 +02:00
committed by GitHub
3 changed files with 5 additions and 5 deletions
@@ -4,7 +4,7 @@ import { authorizeResolver } from '@/modules/shared'
import {
getPaginatedBranchCommitsFactory,
legacyGetPaginatedStreamCommits
legacyGetPaginatedStreamCommitsFactory
} from '@/modules/core/services/commit/retrieval'
import {
markCommitReceivedAndNotify,
@@ -147,7 +147,7 @@ const validateStreamAccess = validateStreamAccessFactory({ authorizeResolver })
const getCommitsByUserId = legacyGetPaginatedUserCommitsPage({ db })
const getCommitsTotalCountByUserId = legacyGetPaginatedUserCommitsTotalCount({ db })
const getCommitsByStreamId = legacyGetPaginatedStreamCommitsPageFactory({ db })
const getPaginatedStreamCommits = legacyGetPaginatedStreamCommits({
const getPaginatedStreamCommits = legacyGetPaginatedStreamCommitsFactory({
legacyGetPaginatedStreamCommitsPage: getCommitsByStreamId,
getStreamCommitCount: getStreamCommitCountFactory({ db })
})
@@ -16,7 +16,7 @@ import { last } from 'lodash'
import { getViewerResourceGroupsFactory } from '@/modules/core/services/commit/viewerResources'
import {
getPaginatedBranchCommitsFactory,
legacyGetPaginatedStreamCommits
legacyGetPaginatedStreamCommitsFactory
} from '@/modules/core/services/commit/retrieval'
import {
filteredSubscribe,
@@ -118,7 +118,7 @@ const getPaginatedBranchCommits = getPaginatedBranchCommitsFactory({
getPaginatedBranchCommitsItems: getPaginatedBranchCommitsItemsFactory({ db }),
getBranchCommitsTotalCount: getBranchCommitsTotalCountFactory({ db })
})
const getPaginatedStreamCommits = legacyGetPaginatedStreamCommits({
const getPaginatedStreamCommits = legacyGetPaginatedStreamCommitsFactory({
legacyGetPaginatedStreamCommitsPage: legacyGetPaginatedStreamCommitsPageFactory({
db
}),
@@ -18,7 +18,7 @@ import {
} from '@/modules/core/domain/commits/operations'
import { GetStreamBranchByName } from '@/modules/core/domain/branches/operations'
export const legacyGetPaginatedStreamCommits =
export const legacyGetPaginatedStreamCommitsFactory =
(deps: {
legacyGetPaginatedStreamCommitsPage: LegacyGetPaginatedStreamCommitsPage
getStreamCommitCount: GetStreamCommitCount