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'
"/api/world":
$ref: 'read/world.yaml'
"/api/world/{filter}":
$ref: 'read/world.yaml'
/api/outgoing:
$ref: 'read/outgoing.yaml'

View File

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

View File

@@ -49,7 +49,7 @@ module.exports = function (Categories) {
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', {