🚧 /channels/messages

This commit is contained in:
Flam3rboy
2021-03-04 09:27:14 +01:00
parent f846638b83
commit b5722fd3fd
2 changed files with 27 additions and 3 deletions
+4 -1
View File
@@ -66,8 +66,11 @@ export function instanceOf(
errors = {},
req,
ref,
}: { path?: string; optional?: boolean; errors?: any; req: Request; ref: { key: string | number; obj: any } }
}: { path?: string; optional?: boolean; errors?: any; req: Request; ref?: { key: string | number; obj: any } }
): Boolean {
if (!ref) ref = { obj: null, key: "" };
if (!path) path = "body";
try {
if (!type) return true; // no type was specified