tests: fix some but not all tests

This commit is contained in:
Julian Lam
2024-04-26 14:10:42 -04:00
parent 40b9dabda3
commit 7645365007
3 changed files with 11 additions and 13 deletions

View File

@@ -326,7 +326,5 @@ paths:
$ref: 'read/groups/slug/members.yaml' $ref: 'read/groups/slug/members.yaml'
"/api/world": "/api/world":
$ref: 'read/world.yaml' $ref: 'read/world.yaml'
"/api/world/{filter}":
$ref: 'read/world.yaml'
/api/outgoing: /api/outgoing:
$ref: 'read/outgoing.yaml' $ref: 'read/outgoing.yaml'

View File

@@ -56,16 +56,16 @@ get:
# type: array # type: array
# items: # items:
# type: number # type: number
# selectedTag: selectedTag:
# type: object type: object
# properties: properties:
# label: label:
# type: string type: string
# nullable: true nullable: true
# selectedTags: selectedTags:
# type: array type: array
# items: items:
# type: string type: string
isWatched: isWatched:
type: boolean type: boolean
isTracked: isTracked:

View File

@@ -49,7 +49,7 @@ module.exports = function (Categories) {
return category; return category;
}, {}); }, {});
} }
categories.splice(cids.indexOf(-1), 1, subset || worldCategory); categories.splice(cids.indexOf(-1), 1, subset || { ...worldCategory });
} }
const result = await plugins.hooks.fire('filter:category.getFields', { const result = await plugins.hooks.fire('filter:category.getFields', {