static hooks don't return sync data

This commit is contained in:
Barış Soner Uşaklı
2024-02-26 09:22:41 -05:00
parent 03d777745e
commit 3607834035

View File

@@ -229,7 +229,8 @@ function hookHandlerPromise(hook, hookObj, params) {
);
return;
}
if (returned) {
if (hook.startsWith('filter:') && returned) {
_resolve(returned);
}
});