@staff0rd/assist 0.245.4 → 0.246.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/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.246.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -4327,9 +4327,9 @@ async function deleteComment(orm, itemId, commentId) {
|
|
|
4327
4327
|
// src/commands/backlog/web/shared.ts
|
|
4328
4328
|
async function listItems(req, res) {
|
|
4329
4329
|
applyCwdFromReq(req);
|
|
4330
|
-
const
|
|
4331
|
-
const
|
|
4332
|
-
respondJson(res, 200,
|
|
4330
|
+
const q = new URL(req.url ?? "/", "http://localhost").searchParams.get("q");
|
|
4331
|
+
const items2 = q ? await searchBacklog(q) : await loadBacklog();
|
|
4332
|
+
respondJson(res, 200, items2.slice().reverse());
|
|
4333
4333
|
}
|
|
4334
4334
|
async function findItemOr404(res, id) {
|
|
4335
4335
|
const { orm } = await getReady();
|