ref: Refactoring
This commit is contained in:
@@ -23,10 +23,10 @@
|
||||
* - name: before
|
||||
* in: query
|
||||
* required: false
|
||||
* description: Pagination cursor (JSON object with id and listChangedAt)
|
||||
* description: Pagination cursor (JSON object with listChangedAt and id)
|
||||
* schema:
|
||||
* type: string
|
||||
* example: '{"id": "1357158568008091269", "listChangedAt": "2024-01-01T00:00:00.000Z"}'
|
||||
* example: '{"listChangedAt": "2024-01-01T00:00:00.000Z", "id": "1357158568008091269"}'
|
||||
* - name: search
|
||||
* in: query
|
||||
* required: false
|
||||
|
||||
@@ -87,7 +87,7 @@ module.exports = {
|
||||
},
|
||||
type: {
|
||||
type: 'string',
|
||||
isIn: List.FINITE_TYPES,
|
||||
isIn: List.KANBAN_TYPES,
|
||||
required: true,
|
||||
},
|
||||
position: {
|
||||
|
||||
@@ -100,7 +100,7 @@ module.exports = {
|
||||
throw Errors.LIST_NOT_FOUND; // Forbidden
|
||||
}
|
||||
|
||||
if (!sails.helpers.lists.isFinite(list)) {
|
||||
if (!sails.helpers.lists.isKanban(list)) {
|
||||
throw Errors.NOT_ENOUGH_RIGHTS;
|
||||
}
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ module.exports = {
|
||||
boardId: idInput,
|
||||
type: {
|
||||
type: 'string',
|
||||
isIn: List.FINITE_TYPES,
|
||||
isIn: List.KANBAN_TYPES,
|
||||
},
|
||||
position: {
|
||||
type: 'number',
|
||||
@@ -146,7 +146,7 @@ module.exports = {
|
||||
throw Errors.LIST_NOT_FOUND; // Forbidden
|
||||
}
|
||||
|
||||
if (!sails.helpers.lists.isFinite(list)) {
|
||||
if (!sails.helpers.lists.isKanban(list)) {
|
||||
throw Errors.NOT_ENOUGH_RIGHTS;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* operationId: getUsers
|
||||
* responses:
|
||||
* 200:
|
||||
* description: List of users retrieved successfully
|
||||
* description: Users retrieved successfully
|
||||
* content:
|
||||
* application/json:
|
||||
* schema:
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* operationId: getWebhooks
|
||||
* responses:
|
||||
* 200:
|
||||
* description: List of webhooks retrieved successfully
|
||||
* description: Webhooks retrieved successfully
|
||||
* content:
|
||||
* application/json:
|
||||
* schema:
|
||||
|
||||
Reference in New Issue
Block a user