You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.leftJoin('settlementWindowStateChange AS swsc','swsc.settlementWindowStateChangeId','settlementWindow.currentStateChangeId')
84
81
.select(
85
82
'settlementWindow.settlementWindowId',
@@ -88,10 +85,13 @@ const Facade = {
88
85
'settlementWindow.createdDate as createdDate',
89
86
'swsc.createdDate as changedDate'
90
87
)
91
-
.whereRaw(`swsc.settlementWindowStateId ${state} AND settlementWindow.createdDate >= '${fromDateTime}' AND settlementWindow.createdDate <= '${toDateTime}'`)
.leftJoin('settlementWindowStateChange AS swsc','swsc.settlementWindowStateChangeId','settlementWindow.currentStateChangeId')
96
96
.leftJoin('transferFulfilment AS tf','tf.settlementWindowId','settlementWindow.settlementWindowId')
97
97
.leftJoin('transferParticipant AS tp','tp.transferId','tf.transferId')
@@ -103,8 +103,12 @@ const Facade = {
103
103
'settlementWindow.createdDate as createdDate',
104
104
'swsc.createdDate as changedDate'
105
105
)
106
-
.whereRaw(`pc.participantId = ${participantId} AND swsc.settlementWindowStateId ${state} AND settlementWindow.createdDate >= '${fromDateTime}' AND settlementWindow.createdDate <= '${toDateTime}'`)
test.ok(builderStub.leftJoin.withArgs('settlementWindowStateChange AS swsc','swsc.settlementWindowStateChangeId','settlementWindow.currentStateChangeId').calledOnce)
274
+
test.ok(leftJoin2Stub.withArgs('transferFulfilment AS tf','tf.settlementWindowId','settlementWindow.settlementWindowId').calledOnce)
275
+
test.ok(leftJoin3Stub.withArgs('transferParticipant AS tp','tp.transferId','tf.transferId').calledOnce)
276
+
test.ok(leftJoin4Stub.withArgs('participantCurrency AS pc','pc.participantCurrencyId','tp.participantCurrencyId').calledOnce)
test.ok(builderStub.leftJoin.withArgs('settlementWindowStateChange AS swsc','swsc.settlementWindowStateChangeId','settlementWindow.currentStateChangeId').calledOnce)
0 commit comments