@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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. 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.245.4",
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 url = new URL(req.url ?? "/", "http://localhost");
4331
- const q = url.searchParams.get("q");
4332
- respondJson(res, 200, q ? await searchBacklog(q) : await loadBacklog());
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.245.4",
3
+ "version": "0.246.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {