mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 04:48:51 +00:00
fix: remove if plugin in msg check
This commit is contained in:
parent
ccd8d95f8f
commit
1337c8cb6b
@ -36,9 +36,6 @@ export function isValidMessage(msg: any) {
|
|||||||
}
|
}
|
||||||
return result.success;
|
return result.success;
|
||||||
} else if (typeof msg === 'object' && msg !== null) {
|
} else if (typeof msg === 'object' && msg !== null) {
|
||||||
if ('plugin' in msg) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
const result = blockMessageObjectSchema.safeParse(msg);
|
const result = blockMessageObjectSchema.safeParse(msg);
|
||||||
if (!result.success) {
|
if (!result.success) {
|
||||||
console.error('Block Model: Object validation failed!', result.error);
|
console.error('Block Model: Object validation failed!', result.error);
|
||||||
|
Loading…
Reference in New Issue
Block a user