Skip to content

Commit

Permalink
feat: Implement update article service layer - EXO-70382 - Meeds-io/M…
Browse files Browse the repository at this point in the history
  • Loading branch information
sofyenne committed Apr 19, 2024
1 parent 16c7c8b commit d71302c
Show file tree
Hide file tree
Showing 5 changed files with 347 additions and 112 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public Response updateNews(@Parameter(description = "News id", required = true)

return Response.ok(news).build();
} catch (IllegalAccessException e) {
LOG.warn("User '{}' is not autorized to update news", currentIdentity.getUserId(), e);
LOG.warn("User '{}' is not authorized to update news", currentIdentity.getUserId(), e);
return Response.status(Response.Status.UNAUTHORIZED).entity(e.getMessage()).build();
} catch (Exception e) {
LOG.error("Error when updating the news " + id, e);
Expand Down
Loading

0 comments on commit d71302c

Please sign in to comment.