@travetto/model-redis 7.1.0 → 7.1.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/package.json +4 -4
- package/src/service.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-redis",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Redis backing for the travetto model module.",
|
|
6
6
|
"keywords": [
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@redis/client": "^5.10.0",
|
|
30
|
-
"@travetto/config": "^7.1.
|
|
31
|
-
"@travetto/model": "^7.1.
|
|
30
|
+
"@travetto/config": "^7.1.2",
|
|
31
|
+
"@travetto/model": "^7.1.2"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@travetto/cli": "^7.1.
|
|
34
|
+
"@travetto/cli": "^7.1.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@travetto/cli": {
|
package/src/service.ts
CHANGED
|
@@ -171,7 +171,7 @@ export class RedisModelService implements ModelCrudSupport, ModelExpirySupport,
|
|
|
171
171
|
this.client = createClient(this.config.client);
|
|
172
172
|
await this.client.connect();
|
|
173
173
|
await ModelStorageUtil.storageInitialization(this);
|
|
174
|
-
ShutdownManager.
|
|
174
|
+
ShutdownManager.signal.addEventListener('abort', () => this.client.destroy());
|
|
175
175
|
for (const cls of ModelRegistryIndex.getClasses()) {
|
|
176
176
|
for (const idx of ModelRegistryIndex.getConfig(cls).indices ?? []) {
|
|
177
177
|
switch (idx.type) {
|