Skip to content

Commit

Permalink
fix: minor corrections in headers_to_exclude
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
  • Loading branch information
andrey18106 committed Aug 2, 2024
1 parent 452cdb4 commit 2f9a1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Db/ExAppMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function registerExAppRoutes(ExApp $exApp, array $routes): int {
'url' => $qb->createNamedParameter($route['url']),
'verb' => $qb->createNamedParameter($route['verb']),
'access_level' => $qb->createNamedParameter($route['access_level']),
'headers_to_exclude' => $qb->createNamedParameter(is_array($route['headers_to_exclude']) ? json_encode($route['headers_to_exclude']) : $route['headers_to_exclude']),
'headers_to_exclude' => $qb->createNamedParameter(is_array($route['headers_to_exclude']) ? json_encode($route['headers_to_exclude']) : '[]'),
]);
$count += $qb->executeStatement();
}
Expand Down

0 comments on commit 2f9a1fd

Please sign in to comment.