Skip to content

Commit

Permalink
core: Fix name typo for database function GetRoleByid
Browse files Browse the repository at this point in the history
From the initiation of the project there was typo in the database function with name 'GetRolsByid'.
This changes just rename this function to more correct 'GetRoleByid' and change it at the calling side in the DAO layer.

Signed-off-by: Stanislav Melnichuk <[email protected]>
  • Loading branch information
0ffer committed Jan 14, 2025
1 parent 36a3073 commit 98a5002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public Role get(Guid id) {
MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource()
.addValue("id", id);

return getCallsHandler().executeRead("GetRolsByid", rolesRowMapper, parameterSource);
return getCallsHandler().executeRead("GetRoleByid", rolesRowMapper, parameterSource);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion packaging/dbscripts/multi_level_administration_sp.sql
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ LANGUAGE plpgsql;



CREATE OR REPLACE FUNCTION GetRolsByid(v_id UUID)
CREATE OR REPLACE FUNCTION GetRoleByid(v_id UUID)
RETURNS SETOF roles STABLE
AS $FUNCTION$
BEGIN
Expand Down

0 comments on commit 98a5002

Please sign in to comment.