backend-manager 5.0.116 → 5.0.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -29,6 +29,14 @@ module.exports = async ({ assistant, Manager, libraries }) => {
|
|
|
29
29
|
return assistant.respond('Invalid key', { code: 401 });
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
// Validate brand — quit if a brand is specified and doesn't match ours
|
|
33
|
+
const brand = query.brand;
|
|
34
|
+
const ourBrand = Manager.config.brand?.id;
|
|
35
|
+
if (brand && ourBrand && brand !== ourBrand) {
|
|
36
|
+
assistant.log(`Ignoring webhook: explicit brand mismatch (received=${brand}, expected=${ourBrand})`);
|
|
37
|
+
return assistant.respond({ received: true, ignored: true });
|
|
38
|
+
}
|
|
39
|
+
|
|
32
40
|
// Load the processor module
|
|
33
41
|
let processorModule;
|
|
34
42
|
try {
|