@adminforth/bulk-ai-flow 1.14.1 → 1.14.2

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/build.log CHANGED
@@ -13,5 +13,5 @@ custom/package-lock.json
13
13
  custom/package.json
14
14
  custom/tsconfig.json
15
15
 
16
- sent 74,113 bytes received 172 bytes 148,570.00 bytes/sec
16
+ sent 74,104 bytes received 172 bytes 148,552.00 bytes/sec
17
17
  total size is 73,472 speedup is 0.99
@@ -1,7 +1,7 @@
1
1
 
2
2
  <template>
3
3
  <!-- Main modal -->
4
- <div tabindex="-1" class="[scrollbar-gutter:stable] fixed inset-0 z-10 flex justify-center items-center bg-gray-800/50 dark:bg-gray-900/50 overflow-y-auto">
4
+ <div tabindex="-1" class="[scrollbar-gutter:stable] fixed inset-0 z-20 flex justify-center items-center bg-gray-800/50 dark:bg-gray-900/50 overflow-y-auto">
5
5
  <div class="relative p-4 w-full max-w-[1600px]">
6
6
  <!-- Modal content -->
7
7
  <div class="relative bg-white rounded-lg shadow-xl dark:bg-gray-700">
@@ -1,7 +1,7 @@
1
1
 
2
2
  <template>
3
3
  <!-- Main modal -->
4
- <div tabindex="-1" class="[scrollbar-gutter:stable] fixed inset-0 z-10 flex justify-center items-center bg-gray-800/50 dark:bg-gray-900/50 overflow-y-auto">
4
+ <div tabindex="-1" class="[scrollbar-gutter:stable] fixed inset-0 z-20 flex justify-center items-center bg-gray-800/50 dark:bg-gray-900/50 overflow-y-auto">
5
5
  <div class="relative p-4 w-full max-w-[1600px]">
6
6
  <!-- Modal content -->
7
7
  <div class="relative bg-white rounded-lg shadow-xl dark:bg-gray-700">
package/dist/index.js CHANGED
@@ -253,9 +253,9 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
253
253
  recordResult[key] = images;
254
254
  });
255
255
  const result = recordResult;
256
- this.totalCalls++;
257
- this.totalDuration += (+new Date() - start) / 1000;
258
256
  if (!isError) {
257
+ this.totalCalls++;
258
+ this.totalDuration += (+new Date() - start) / 1000;
259
259
  jobs.set(jobId, { status: 'completed', result });
260
260
  return { ok: true };
261
261
  }
@@ -316,9 +316,9 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
316
316
  }
317
317
  return resp.imageURLs[0];
318
318
  })));
319
- this.totalCalls++;
320
- this.totalDuration += (+new Date() - start) / 1000;
321
319
  if (!isError) {
320
+ this.totalCalls++;
321
+ this.totalDuration += (+new Date() - start) / 1000;
322
322
  jobs.set(jobId, { status: 'completed', result: { [fieldName]: images } });
323
323
  return { ok: true };
324
324
  }
package/index.ts CHANGED
@@ -257,9 +257,9 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
257
257
 
258
258
  const result = recordResult;
259
259
 
260
- this.totalCalls++;
261
- this.totalDuration += (+new Date() - start) / 1000;
262
260
  if (!isError) {
261
+ this.totalCalls++;
262
+ this.totalDuration += (+new Date() - start) / 1000;
263
263
  jobs.set(jobId, { status: 'completed', result });
264
264
  return { ok: true }
265
265
  } else {
@@ -319,9 +319,10 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
319
319
  return resp.imageURLs[0]
320
320
  })
321
321
  );
322
- this.totalCalls++;
323
- this.totalDuration += (+new Date() - start) / 1000;
322
+
324
323
  if (!isError) {
324
+ this.totalCalls++;
325
+ this.totalDuration += (+new Date() - start) / 1000;
325
326
  jobs.set(jobId, { status: 'completed', result: { [fieldName]: images } });
326
327
  return { ok: true };
327
328
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/bulk-ai-flow",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },