@dudousxd/nestjs-durable 0.34.1 → 0.34.2
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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1786,8 +1786,8 @@ function assertValidRole(options) {
|
|
|
1786
1786
|
if (!hasStore && !hasConnection) {
|
|
1787
1787
|
throw new Error("a durable module needs either a `store` (operator) or a `connection` (worker)");
|
|
1788
1788
|
}
|
|
1789
|
-
if (hasStore && options.transport === void 0) {
|
|
1790
|
-
throw new Error("an operator (`store`) needs a `transport`");
|
|
1789
|
+
if (hasStore && options.transport === void 0 && options.transports === void 0) {
|
|
1790
|
+
throw new Error("an operator (`store`) needs a `transport` (or `transports`)");
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
1793
|
__name(assertValidRole, "assertValidRole");
|