Update dependencies 🚀
This commit is contained in:
parent
6274f6f2f6
commit
0f27b62924
99 changed files with 446 additions and 433 deletions
|
|
@ -9,7 +9,7 @@ import UserList, { pack } from '../../../../../models/user-list';
|
|||
*/
|
||||
module.exports = async (params, user) => new Promise(async (res, rej) => {
|
||||
// Get 'title' parameter
|
||||
const [title, titleErr] = $(params.title).string().range(1, 100).$;
|
||||
const [title, titleErr] = $(params.title).string().range(1, 100).get();
|
||||
if (titleErr) return rej('invalid title param');
|
||||
|
||||
// insert
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import { deliver } from '../../../../../queue';
|
|||
*/
|
||||
module.exports = async (params, me) => new Promise(async (res, rej) => {
|
||||
// Get 'listId' parameter
|
||||
const [listId, listIdErr] = $(params.listId).type(ID).$;
|
||||
const [listId, listIdErr] = $(params.listId).type(ID).get();
|
||||
if (listIdErr) return rej('invalid listId param');
|
||||
|
||||
// Fetch the list
|
||||
|
|
@ -25,7 +25,7 @@ module.exports = async (params, me) => new Promise(async (res, rej) => {
|
|||
}
|
||||
|
||||
// Get 'userId' parameter
|
||||
const [userId, userIdErr] = $(params.userId).type(ID).$;
|
||||
const [userId, userIdErr] = $(params.userId).type(ID).get();
|
||||
if (userIdErr) return rej('invalid userId param');
|
||||
|
||||
// Fetch the user
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import UserList, { pack } from '../../../../../models/user-list';
|
|||
*/
|
||||
module.exports = async (params, me) => new Promise(async (res, rej) => {
|
||||
// Get 'listId' parameter
|
||||
const [listId, listIdErr] = $(params.listId).type(ID).$;
|
||||
const [listId, listIdErr] = $(params.listId).type(ID).get();
|
||||
if (listIdErr) return rej('invalid listId param');
|
||||
|
||||
// Fetch the list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue