mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-28 09:31:17 +01:00
tests: fix some but not all tests
This commit is contained in:
@@ -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'
|
||||||
@@ -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:
|
||||||
|
|||||||
@@ -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', {
|
||||||
|
|||||||
Reference in New Issue
Block a user