Merge pull request #3368 from specklesystems/fabians/core-ioc-100
chore(server): core IoC #100 - rename
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user