payment-kit 1.18.55 → 1.18.56
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/api/src/libs/queue/index.ts +1 -3
- package/blocklet.yml +1 -1
- package/package.json +4 -4
|
@@ -8,7 +8,6 @@ import { nanoid } from 'nanoid';
|
|
|
8
8
|
import { AsyncLocalStorage } from 'async_hooks';
|
|
9
9
|
import logger from '../logger';
|
|
10
10
|
import { sleep, tryWithTimeout } from '../util';
|
|
11
|
-
import dayjs from '../dayjs';
|
|
12
11
|
import createQueueStore from './store';
|
|
13
12
|
import { Job } from '../../store/models/job';
|
|
14
13
|
import { sequelize } from '../../store/sequelize';
|
|
@@ -113,7 +112,6 @@ export default function createQueue<T = any>({ name, onJob, options = defaults }
|
|
|
113
112
|
queueEvents.emit(e, data);
|
|
114
113
|
jobEvents.emit(e, data);
|
|
115
114
|
};
|
|
116
|
-
const now = dayjs().unix();
|
|
117
115
|
|
|
118
116
|
if (!job) {
|
|
119
117
|
throw new Error('Can not queue empty job');
|
|
@@ -136,7 +134,7 @@ export default function createQueue<T = any>({ name, onJob, options = defaults }
|
|
|
136
134
|
attrs.delay = delay;
|
|
137
135
|
attrs.will_run_at = Date.now() + delay * 1000;
|
|
138
136
|
}
|
|
139
|
-
if (runAt
|
|
137
|
+
if (runAt) {
|
|
140
138
|
// 如果 runAt 大于当前时间,则延迟执行,否则直接执行
|
|
141
139
|
attrs.delay = 1;
|
|
142
140
|
attrs.will_run_at = runAt * 1000;
|
package/blocklet.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payment-kit",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.56",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "blocklet dev --open",
|
|
6
6
|
"eject": "vite eject",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@blocklet/did-space-js": "^1.0.60",
|
|
56
56
|
"@blocklet/js-sdk": "^1.16.44",
|
|
57
57
|
"@blocklet/logger": "^1.16.44",
|
|
58
|
-
"@blocklet/payment-react": "1.18.
|
|
58
|
+
"@blocklet/payment-react": "1.18.56",
|
|
59
59
|
"@blocklet/sdk": "^1.16.44",
|
|
60
60
|
"@blocklet/ui-react": "^2.13.66",
|
|
61
61
|
"@blocklet/uploader": "^0.1.95",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"devDependencies": {
|
|
124
124
|
"@abtnode/types": "^1.16.44",
|
|
125
125
|
"@arcblock/eslint-config-ts": "^0.3.3",
|
|
126
|
-
"@blocklet/payment-types": "1.18.
|
|
126
|
+
"@blocklet/payment-types": "1.18.56",
|
|
127
127
|
"@types/cookie-parser": "^1.4.7",
|
|
128
128
|
"@types/cors": "^2.8.17",
|
|
129
129
|
"@types/debug": "^4.1.12",
|
|
@@ -169,5 +169,5 @@
|
|
|
169
169
|
"parser": "typescript"
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
|
-
"gitHead": "
|
|
172
|
+
"gitHead": "9fd0235186e07388337cf1a57b257f97de8dd4c3"
|
|
173
173
|
}
|