File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ outline: deep
9
9
* Fixed a bug where undefined tables were added to the drizzle map due to yesterday's fix.
10
10
* Updated to latest drizzle and mysql2 modules.
11
11
* NOTE: Run ` npm i ` to update your modules.
12
+ * Fixed: replace db.session.client.pool.end() with db.$client.pool.end() #195
12
13
13
14
### 2025-01-20
14
15
* Fixed a problem where CLI would try to update the drizzle map when creating a new ving schema.
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { addJob } from '#ving/jobs/queue.mjs';
5
5
import { ouch } from '#ving/utils/ouch.mjs' ;
6
6
import { sleep } from '#ving/utils/sleep.mjs' ;
7
7
import { miniHash } from '#ving/utils/miniHash.mjs' ;
8
- //import { useKind } from '#ving/record/utils.mjs'
9
8
import { useDB } from '#ving/drizzle/db.mjs'
10
9
import { useRedis } from '#ving/redis.mjs'
11
10
import { getConfig } from '#ving/config.mjs' ;
@@ -24,7 +23,6 @@ import { getConfig } from '#ving/config.mjs';
24
23
* addJob() - the same as `addJob` from '#ving/jobs/queue.mjs'
25
24
* ouch() - the same as `ouch` from '#ving/utils/ouch.mjs'
26
25
* getConfig() - the sames `getConfig` from '#ving/config.mjs'
27
- * useKind() - the same as `useKind` from '#ving/record/VingRecord.mjs'
28
26
* close() - closes the connections mysql, redis/BullMQ, and redis/cache
29
27
*/
30
28
export default {
@@ -37,9 +35,8 @@ export default {
37
35
addJob,
38
36
ouch,
39
37
getConfig,
40
- //useKind,
41
38
close : async ( ) => {
42
- await useDB ( ) . session . client . pool . end ( ) ;
39
+ await useDB ( ) . $ client. pool . end ( ) ;
43
40
await useRedis ( ) . quit ( ) ;
44
41
}
45
42
}
You can’t perform that action at this time.
0 commit comments