Add some tests and some fixes
This commit is contained in:
parent
88664486af
commit
99da4f9839
3 changed files with 69 additions and 10 deletions
|
@ -101,7 +101,7 @@ export const meta = {
|
|||
|
||||
export default async (params: any, user: ILocalUser, app: IApp) => new Promise(async (res, rej) => {
|
||||
const [ps, psErr] = getParams(meta, params);
|
||||
if (psErr) throw psErr;
|
||||
if (psErr) return rej(psErr);
|
||||
|
||||
const isSecure = user != null && app == null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue