Add some tests and some fixes

This commit is contained in:
syuilo 2018-10-16 08:54:36 +09:00
parent 88664486af
commit 99da4f9839
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
3 changed files with 69 additions and 10 deletions

View file

@ -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;