Skip to content

Commit 7da2495

Browse files
committed
[BUGFIX] fixes pre
1 parent a5e0f1a commit 7da2495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/route/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Plugin {
5555
this.modelExtension = route.modelExtension;
5656
this.modelEvents = route.events;
5757
this.modelHooks = route.hooks && route.hooks() || {};
58-
this.pre = route.pre && route.pre() || {};
58+
this.pre = route.pre && route.pre() || [];
5959
this.omitRoutes = route.omitRoutes && route.omitRoutes() || [];
6060
this.auth = route.auth && route.auth() || {};
6161
this.stripColumns = route.stripColumns && route.stripColumns() || [];

0 commit comments

Comments
 (0)