File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " strontium" ,
3
- "version" : " 2.5.1 " ,
3
+ "version" : " 2.5.2 " ,
4
4
"description" : " Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects." ,
5
5
"main" : " lib/src/index.js" ,
6
6
"types" : " lib/src/index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
import { pgQueryPostProcessor } from "../pg/PGQueryPostProcessor"
2
2
import { Repository } from "../../abstract/Repository"
3
- import { MySQLStore , PGStore , SQLStore } from "../../../datastore"
3
+ import {
4
+ MySQLStore ,
5
+ MySQLTransaction ,
6
+ PGStore ,
7
+ SQLStore ,
8
+ } from "../../../datastore"
4
9
import { injectable } from "inversify"
5
10
import { isUndefined , omitBy } from "lodash"
6
11
@@ -46,7 +51,10 @@ export abstract class TableRepository<
46
51
// Filter the payload for any undefined keys
47
52
let filteredPayload = ( omitBy ( payload , isUndefined ) as unknown ) as T
48
53
49
- if ( connection instanceof MySQLStore ) {
54
+ if (
55
+ connection instanceof MySQLStore ||
56
+ connection instanceof MySQLTransaction
57
+ ) {
50
58
let insertQuery = `
51
59
INSERT INTO
52
60
??
You can’t perform that action at this time.
0 commit comments