chore: upgrade moduleResolution to Node16 (#9269)

This commit is contained in:
Harminder Virk
2024-09-24 17:19:20 +05:30
committed by GitHub
parent d721282600
commit 9e711720dd
216 changed files with 981 additions and 2439 deletions

View File

@@ -92,7 +92,6 @@ export class WorkflowOrchestratorService {
protected container_: MedusaContainer
private subscribers: Subscribers = new Map()
private activeStepsCount: number = 0
private logger: Logger
protected redisDistributedTransactionStorage_: RedisDistributedTransactionStorage
@@ -101,7 +100,6 @@ export class WorkflowOrchestratorService {
redisDistributedTransactionStorage,
redisPublisher,
redisSubscriber,
logger,
sharedContainer,
}: {
dataLoaderOnly: boolean
@@ -115,7 +113,6 @@ export class WorkflowOrchestratorService {
this.container_ = sharedContainer
this.redisPublisher = redisPublisher
this.redisSubscriber = redisSubscriber
this.logger = logger
redisDistributedTransactionStorage.setWorkflowOrchestratorService(this)
@@ -263,7 +260,7 @@ export class WorkflowOrchestratorService {
options?: WorkflowOrchestratorRunOptions<undefined>,
@MedusaContext() sharedContext: Context = {}
): Promise<DistributedTransactionType> {
let { context, container } = options ?? {}
let { context } = options ?? {}
if (!workflowId) {
throw new Error("Workflow ID is required")

View File

@@ -288,7 +288,7 @@ export class RedisDistributedTransactionStorage
async scheduleTransactionTimeout(
transaction: DistributedTransactionType,
timestamp: number,
_: number,
interval: number
): Promise<void> {
await this.queue.add(