@dyrected/db-mysql 2.5.24 → 2.5.26
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/index.cjs +2 -0
- package/dist/index.js +2 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -184,6 +184,8 @@ FIX INSTRUCTIONS:
|
|
|
184
184
|
const result = (0, import_core.parseSqlWhere)(
|
|
185
185
|
args.where,
|
|
186
186
|
(field) => {
|
|
187
|
+
if (field === "createdAt") return "`created_at`";
|
|
188
|
+
if (field === "updatedAt") return "`updated_at`";
|
|
187
189
|
if (existingCols.includes(field) && !["id", "data"].includes(field)) {
|
|
188
190
|
return `\`${field}\``;
|
|
189
191
|
}
|
package/dist/index.js
CHANGED
|
@@ -149,6 +149,8 @@ FIX INSTRUCTIONS:
|
|
|
149
149
|
const result = parseSqlWhere(
|
|
150
150
|
args.where,
|
|
151
151
|
(field) => {
|
|
152
|
+
if (field === "createdAt") return "`created_at`";
|
|
153
|
+
if (field === "updatedAt") return "`updated_at`";
|
|
152
154
|
if (existingCols.includes(field) && !["id", "data"].includes(field)) {
|
|
153
155
|
return `\`${field}\``;
|
|
154
156
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dyrected/db-mysql",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.26",
|
|
4
4
|
"description": "MySQL adapter for Dyrected CMS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"mysql2": "^3.22.3",
|
|
21
|
-
"@dyrected/core": "^2.5.
|
|
21
|
+
"@dyrected/core": "^2.5.26"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"tsup": "^8.0.0",
|