shellwise 0.2.2 → 0.2.3
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/package.json +1 -1
- package/src/daemon/server.ts +2 -2
package/package.json
CHANGED
package/src/daemon/server.ts
CHANGED
|
@@ -21,13 +21,13 @@ function initPreparedStatements() {
|
|
|
21
21
|
suggestPrefix = db.prepare(
|
|
22
22
|
`SELECT command FROM command_stats
|
|
23
23
|
WHERE command LIKE ?1 || '%' ESCAPE '\\'
|
|
24
|
-
ORDER BY
|
|
24
|
+
ORDER BY last_used_at DESC
|
|
25
25
|
LIMIT ?2`
|
|
26
26
|
);
|
|
27
27
|
suggestContains = db.prepare(
|
|
28
28
|
`SELECT command FROM command_stats
|
|
29
29
|
WHERE command LIKE '%' || ?1 || '%' ESCAPE '\\' AND command != ?1
|
|
30
|
-
ORDER BY
|
|
30
|
+
ORDER BY last_used_at DESC
|
|
31
31
|
LIMIT ?2`
|
|
32
32
|
);
|
|
33
33
|
}
|