wip
This commit is contained in:
@@ -5,7 +5,7 @@ import { ILocalUser } from '../../../../../models/user';
|
||||
/**
|
||||
* Find a file(s)
|
||||
*/
|
||||
module.exports = (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
|
||||
export default (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
|
||||
// Get 'name' parameter
|
||||
const [name, nameErr] = $.str.get(params.name);
|
||||
if (nameErr) return rej('invalid name param');
|
||||
|
Reference in New Issue
Block a user