Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenJaden committed Feb 23, 2024
1 parent a122d4d commit 81ca782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/presentation/http/http-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ export default class HttpApi implements Api {

routeOptions.preHandler.push(async (request, reply) => {
for (const policy of policies) {
await Policies[policy]({ request,
await Policies[policy]({
request,
reply,
domainServices });
}
Expand Down
5 changes: 0 additions & 5 deletions src/presentation/http/router/noteSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ const NoteSettingsRouter: FastifyPluginCallback<NoteSettingsRouterOptions> = (fa
*/
const { noteSettingsResolver } = useNoteSettingsResolver(noteSettingsService);

/**
* Prepare user role resolver middleware
* It should be used to use user role in middlewares
*/

/**
* Returns Note settings by note id. Note public id is passed in route params, and it converted to internal id via middleware
*/
Expand Down

0 comments on commit 81ca782

Please sign in to comment.