@mastra/mssql 0.5.2-alpha.0 → 0.5.3-alpha.0
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/CHANGELOG.md +20 -0
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -754,7 +754,8 @@ var MemoryMSSQL = class extends MemoryStorage {
|
|
|
754
754
|
const rows = rowsResult.recordset || [];
|
|
755
755
|
rows.sort((a, b) => a.seq_id - b.seq_id);
|
|
756
756
|
messages.push(...rows);
|
|
757
|
-
|
|
757
|
+
let parsed = this._parseAndFormatMessages(messages, format);
|
|
758
|
+
parsed = parsed.sort((a, b) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime());
|
|
758
759
|
return {
|
|
759
760
|
messages: parsed,
|
|
760
761
|
total,
|
|
@@ -2419,8 +2420,8 @@ function transformScoreRow(row) {
|
|
|
2419
2420
|
additionalContext: safelyParseJSON(row.additionalContext),
|
|
2420
2421
|
runtimeContext: safelyParseJSON(row.runtimeContext),
|
|
2421
2422
|
entity: safelyParseJSON(row.entity),
|
|
2422
|
-
createdAt: row.createdAt,
|
|
2423
|
-
updatedAt: row.updatedAt
|
|
2423
|
+
createdAt: new Date(row.createdAt),
|
|
2424
|
+
updatedAt: new Date(row.updatedAt)
|
|
2424
2425
|
};
|
|
2425
2426
|
}
|
|
2426
2427
|
var ScoresMSSQL = class extends ScoresStorage {
|