Commit 5bc28d4
committed
fix: preserve plugins with empty config when saving routes
Plugins that don't require configuration (e.g. key-auth) were being
silently dropped when saving routes because fast-clean library removes
empty objects by default. Setting emptyObjectsCleaner to false preserves
these plugin entries.1 parent a2ee27a commit 5bc28d4
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments