chore: woops small fix

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-06-19 17:58:20 +02:00
parent 78621334a3
commit ef7d1f77b8
+1 -1
View File
@@ -58,7 +58,7 @@ export class MiddlewareFactory {
* Creates a new {@link MiddlewareFactory}.
*/
static create(options: MiddlewareFactoryOptions) {
return _MiddlewareFactory.create(options);
return new MiddlewareFactory(_MiddlewareFactory.create(options));
}
private constructor(private readonly impl: _MiddlewareFactory) {}