mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-25 06:41:36 -07:00
Update show.ts
This commit is contained in:
parent
5f8d803d5e
commit
299b8c164b
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ module.exports = (params, me) => new Promise(async (res, rej) => {
|
||||||
|
|
||||||
// Get 'host' parameter
|
// Get 'host' parameter
|
||||||
const [host, hostErr] = $(params.host).optional.string().$;
|
const [host, hostErr] = $(params.host).optional.string().$;
|
||||||
if (hostErr) return rej('invalid username param');
|
if (hostErr) return rej('invalid host param');
|
||||||
|
|
||||||
if (userId === undefined && typeof username !== 'string') {
|
if (userId === undefined && typeof username !== 'string') {
|
||||||
return rej('userId or pair of username and host is required');
|
return rej('userId or pair of username and host is required');
|
||||||
|
|
Loading…
Reference in a new issue