@wabot-dev/framework 0.4.0-beta.4 → 0.4.0-beta.5
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/src/addon/async/pg/PgCronJobRepository.js +1 -1
- package/dist/src/addon/async/pg/PgJobRepository.js +1 -1
- package/dist/src/addon/auth/api-key/PgApiKeyRepository.js +1 -1
- package/dist/src/addon/auth/jwt/PgJwtRefreshTokenRepository.js +1 -1
- package/dist/src/addon/chat-bot/pg/PgChatMemory.js +1 -1
- package/dist/src/addon/chat-bot/pg/PgChatRepository.js +1 -1
- package/dist/src/addon/chat-controller/whatsapp/PgWhatsAppRepository.js +1 -1
- package/dist/src/feature/async/Job.js +1 -1
- package/dist/src/feature/pg/PgRepositoryBase.js +1 -1
- package/dist/src/index.js +1 -1
- package/package.json +1 -1
- /package/dist/src/feature/pg/{PgLock.js → PgLocker.js} +0 -0
|
@@ -2,7 +2,7 @@ import { __decorate, __metadata } from 'tslib';
|
|
|
2
2
|
import { singleton } from '../../../core/injection/index.js';
|
|
3
3
|
import { CronJob } from '../../../feature/async/CronJob.js';
|
|
4
4
|
import { PgCrudRepository } from '../../../feature/pg/PgCrudRepository.js';
|
|
5
|
-
import '../../../feature/pg/
|
|
5
|
+
import '../../../feature/pg/PgLocker.js';
|
|
6
6
|
import 'debug';
|
|
7
7
|
import 'node:crypto';
|
|
8
8
|
import '../../../feature/pg/withPgClient.js';
|
|
@@ -2,7 +2,7 @@ import { __decorate, __metadata } from 'tslib';
|
|
|
2
2
|
import { Pool } from 'pg';
|
|
3
3
|
import { singleton } from '../../../core/injection/index.js';
|
|
4
4
|
import { PgCrudRepository } from '../../../feature/pg/PgCrudRepository.js';
|
|
5
|
-
import '../../../feature/pg/
|
|
5
|
+
import '../../../feature/pg/PgLocker.js';
|
|
6
6
|
import 'debug';
|
|
7
7
|
import 'node:crypto';
|
|
8
8
|
import { withPgClient } from '../../../feature/pg/withPgClient.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { PgCrudRepository } from '../../../feature/pg/PgCrudRepository.js';
|
|
3
|
-
import '../../../feature/pg/
|
|
3
|
+
import '../../../feature/pg/PgLocker.js';
|
|
4
4
|
import 'debug';
|
|
5
5
|
import 'node:crypto';
|
|
6
6
|
import '../../../feature/pg/withPgClient.js';
|
|
@@ -2,7 +2,7 @@ import { __decorate, __metadata } from 'tslib';
|
|
|
2
2
|
import { singleton } from '../../../core/injection/index.js';
|
|
3
3
|
import { CustomError } from '../../../core/error/CustomError.js';
|
|
4
4
|
import { PgCrudRepository } from '../../../feature/pg/PgCrudRepository.js';
|
|
5
|
-
import '../../../feature/pg/
|
|
5
|
+
import '../../../feature/pg/PgLocker.js';
|
|
6
6
|
import 'debug';
|
|
7
7
|
import 'node:crypto';
|
|
8
8
|
import '../../../feature/pg/withPgClient.js';
|
|
@@ -3,7 +3,7 @@ import { Pool } from 'pg';
|
|
|
3
3
|
import { PgChatMemory } from './PgChatMemory.js';
|
|
4
4
|
import { singleton } from '../../../core/injection/index.js';
|
|
5
5
|
import { PgCrudRepository } from '../../../feature/pg/PgCrudRepository.js';
|
|
6
|
-
import '../../../feature/pg/
|
|
6
|
+
import '../../../feature/pg/PgLocker.js';
|
|
7
7
|
import 'debug';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import '../../../feature/pg/withPgClient.js';
|
|
@@ -3,7 +3,7 @@ import { Pool } from 'pg';
|
|
|
3
3
|
import { WhatsApp } from './WhatsApp.js';
|
|
4
4
|
import { singleton } from '../../../core/injection/index.js';
|
|
5
5
|
import { PgCrudRepository } from '../../../feature/pg/PgCrudRepository.js';
|
|
6
|
-
import '../../../feature/pg/
|
|
6
|
+
import '../../../feature/pg/PgLocker.js';
|
|
7
7
|
import 'debug';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import '../../../feature/pg/withPgClient.js';
|
|
@@ -59,7 +59,7 @@ class Job extends Entity {
|
|
|
59
59
|
this.data.scheduledAt <= new Date().getTime());
|
|
60
60
|
}
|
|
61
61
|
isStuck() {
|
|
62
|
-
return this.runningSeconds > (this.data.aceptableRunningTimeSeconds ??
|
|
62
|
+
return this.runningSeconds > (this.data.aceptableRunningTimeSeconds ?? 15);
|
|
63
63
|
}
|
|
64
64
|
setAsStarted() {
|
|
65
65
|
if (!this.isScheduleReady())
|
package/dist/src/index.js
CHANGED
|
@@ -74,7 +74,7 @@ export { MindsetOperator } from './feature/mindset/MindsetOperator.js';
|
|
|
74
74
|
export { Money } from './feature/money/Money.js';
|
|
75
75
|
export { MoneyDto } from './feature/money/MoneyDto.js';
|
|
76
76
|
export { PgCrudRepository } from './feature/pg/PgCrudRepository.js';
|
|
77
|
-
export { PgLocker } from './feature/pg/
|
|
77
|
+
export { PgLocker } from './feature/pg/PgLocker.js';
|
|
78
78
|
export { PgLockKey } from './feature/pg/PgLockKey.js';
|
|
79
79
|
export { PgRepositoryBase } from './feature/pg/PgRepositoryBase.js';
|
|
80
80
|
export { getClientMap, pgStorage } from './feature/pg/pgStorage.js';
|
package/package.json
CHANGED
|
File without changes
|