mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-28 04:02:18 +01:00
test(server): tolerate partial service-index route mocks
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
93bff79e15
commit
8b3269dc3f
1 file changed
+9
-2
@@ -126,7 +126,6 @@ import {
|
||||
companyService,
|
||||
companySearchService,
|
||||
executionWorkspaceService,
|
||||
feedbackDeliveryCommentStateService,
|
||||
goalService,
|
||||
heartbeatService,
|
||||
issueApprovalService,
|
||||
@@ -2767,7 +2766,15 @@ export function issueRoutes(
|
||||
const goalsSvc = goalService(db);
|
||||
const issueApprovalsSvc = issueApprovalService(db);
|
||||
const recoveryActionsSvc = issueRecoveryActionService(db);
|
||||
const feedbackDeliveryStatesSvc = feedbackDeliveryCommentStateService(db);
|
||||
const feedbackDeliveryStateFactory = Object.prototype.hasOwnProperty.call(
|
||||
serviceIndex,
|
||||
"feedbackDeliveryCommentStateService",
|
||||
)
|
||||
? serviceIndex.feedbackDeliveryCommentStateService
|
||||
: undefined;
|
||||
const feedbackDeliveryStatesSvc = feedbackDeliveryStateFactory?.(db) ?? {
|
||||
listForIssue: async () => new Map(),
|
||||
};
|
||||
const executionWorkspacesSvc = executionWorkspaceServiceDirect(db);
|
||||
const workProductsSvc = workProductService(db);
|
||||
const documentsSvc = documentService(db);
|
||||
|
||||
Reference in new issue
Block a user