Skip to content

Commit

Permalink
fix: fix redis client name and types exports
Browse files Browse the repository at this point in the history
  • Loading branch information
thonatos committed Jan 4, 2024
1 parent a25c1b9 commit 0cc03d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions packages/apps/artusx-api/src/app/types.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
export { default as IRedisClient } from '@artusx/plugin-redis/lib/client';
export { default as ISequelizeClient } from '@artusx/plugin-sequelize/lib/client';

export * from '@artusx/core/lib/types';
3 changes: 0 additions & 3 deletions packages/libs/framework/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
export { default as IRedisClient } from '@artusx/plugin-redis/lib/client';
export { default as ISequelizeClient } from '@artusx/plugin-sequelize/lib/client';

export * from '@artusx/plugin-application-http';
4 changes: 2 additions & 2 deletions packages/plugins/redis/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class RedisLifecycle implements ApplicationLifecycle {

@LifecycleHook()
async willReady() {
const sequelize = this.app.container.get('ARTUS_REDIS') as Redis;
await sequelize.init(this.app.config.redis as RedisConfig);
const redis = this.app.container.get('ARTUS_REDIS') as Redis;
await redis.init(this.app.config.redis as RedisConfig);
}
}

0 comments on commit 0cc03d5

Please sign in to comment.