proofscan 0.5.1 → 0.5.2
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.
|
@@ -98,7 +98,7 @@ function findSessionByPartialId(db, partialId) {
|
|
|
98
98
|
const session = db.prepare(`
|
|
99
99
|
SELECT * FROM sessions
|
|
100
100
|
WHERE session_id LIKE ?
|
|
101
|
-
ORDER BY
|
|
101
|
+
ORDER BY started_at DESC
|
|
102
102
|
LIMIT 1
|
|
103
103
|
`).get(partialId + '%');
|
|
104
104
|
return session || null;
|
|
@@ -112,14 +112,14 @@ function findLatestSession(db, connectorId) {
|
|
|
112
112
|
session = db.prepare(`
|
|
113
113
|
SELECT * FROM sessions
|
|
114
114
|
WHERE connector_id = ?
|
|
115
|
-
ORDER BY
|
|
115
|
+
ORDER BY started_at DESC
|
|
116
116
|
LIMIT 1
|
|
117
117
|
`).get(connectorId);
|
|
118
118
|
}
|
|
119
119
|
else {
|
|
120
120
|
session = db.prepare(`
|
|
121
121
|
SELECT * FROM sessions
|
|
122
|
-
ORDER BY
|
|
122
|
+
ORDER BY started_at DESC
|
|
123
123
|
LIMIT 1
|
|
124
124
|
`).get();
|
|
125
125
|
}
|