This commit is contained in:
syuilo
2018-10-26 08:36:50 +09:00
parent f00489196d
commit 5b1cd3bd3c
18 changed files with 18 additions and 18 deletions

View File

@ -32,7 +32,7 @@ export const meta = {
export default (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
const [ps, psErr] = getParams(meta, params);
if (psErr) throw psErr;
if (psErr) return rej(psErr);
// Fetch the list
const userList = await UserList.findOne({

View File

@ -110,7 +110,7 @@ export const meta = {
export default (params: any, me: ILocalUser) => new Promise(async (res, rej) => {
const [ps, psErr] = getParams(meta, params);
if (psErr) throw psErr;
if (psErr) return rej(psErr);
if (ps.userId === undefined && ps.username === undefined) {
return rej('userId or username is required');