mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 12:28:26 +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;
|
||||
} else if (typeof msg === 'object' && msg !== null) {
|
||||
if ('plugin' in msg) {
|
||||
return true;
|
||||
}
|
||||
const result = blockMessageObjectSchema.safeParse(msg);
|
||||
if (!result.success) {
|
||||
console.error('Block Model: Object validation failed!', result.error);
|
||||
|
Loading…
Reference in New Issue
Block a user