@develit-services/bank 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/export/worker.cjs +1 -1
- package/dist/export/worker.mjs +2 -2
- package/dist/export/workflows.cjs +1 -1
- package/dist/export/workflows.mjs +1 -1
- package/dist/shared/{bank.CrqX5SOO.cjs → bank.B3isylGM.cjs} +1 -3
- package/dist/shared/{bank.B7_g0cO5.mjs → bank.JtGSu6eH.mjs} +1 -3
- package/package.json +1 -1
package/dist/export/worker.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const export_workflows = require('../shared/bank.
|
|
3
|
+
const export_workflows = require('../shared/bank.B3isylGM.cjs');
|
|
4
4
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
5
5
|
const cloudflare_workers = require('cloudflare:workers');
|
|
6
6
|
const d1 = require('drizzle-orm/d1');
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getPaymentsByBankRefIdsQuery, u as updatePaymentCommand, c as createPaymentCommand, a as updateAccountLastSyncCommand, b as getCredentialsByAccountId, i as initiateConnector } from '../shared/bank.
|
|
2
|
-
export { w as BankWorkflows } from '../shared/bank.
|
|
1
|
+
import { g as getPaymentsByBankRefIdsQuery, u as updatePaymentCommand, c as createPaymentCommand, a as updateAccountLastSyncCommand, b as getCredentialsByAccountId, i as initiateConnector } from '../shared/bank.JtGSu6eH.mjs';
|
|
2
|
+
export { w as BankWorkflows } from '../shared/bank.JtGSu6eH.mjs';
|
|
3
3
|
import { uuidv4, bankAccountMetadataSchema, workflowInstanceStatusSchema, develitWorker, createInternalError, first, action, service } from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { drizzle } from 'drizzle-orm/d1';
|
|
@@ -142,9 +142,7 @@ class SyncAccountPaymentsWorkflow extends cloudflare_workers.WorkflowEntrypoint
|
|
|
142
142
|
return account2;
|
|
143
143
|
});
|
|
144
144
|
if (!account.lastSyncedAt) {
|
|
145
|
-
throw new
|
|
146
|
-
`lastSyncedAt is not set for account: ${accountId}`
|
|
147
|
-
);
|
|
145
|
+
throw new Error(`lastSyncedAt is not set for account: ${accountId}`);
|
|
148
146
|
}
|
|
149
147
|
const credentials = await step.do(
|
|
150
148
|
"load account credentials",
|
|
@@ -140,9 +140,7 @@ class SyncAccountPaymentsWorkflow extends WorkflowEntrypoint {
|
|
|
140
140
|
return account2;
|
|
141
141
|
});
|
|
142
142
|
if (!account.lastSyncedAt) {
|
|
143
|
-
throw new
|
|
144
|
-
`lastSyncedAt is not set for account: ${accountId}`
|
|
145
|
-
);
|
|
143
|
+
throw new Error(`lastSyncedAt is not set for account: ${accountId}`);
|
|
146
144
|
}
|
|
147
145
|
const credentials = await step.do(
|
|
148
146
|
"load account credentials",
|