Skip to content

Commit a3d0512

Browse files
committed
refactor: streamline get_comments function definition
- Consolidated the function definition for public.get_comments by removing unnecessary line breaks and improving formatting. - Enhanced readability and maintainability of the SQL function. This change contributes to a cleaner and more efficient codebase.
1 parent 2744811 commit a3d0512

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

migrations/sql-functions/get_comments.sql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
-- Function: public.get_comments(p_resource_id uuid, p_resource_type character varying, p_parent_id uuid DEFAULT NULL::uuid, p_current_level integer DEFAULT 0)
66

77

8-
CREATE OR REPLACE FUNCTION get_comments(
9-
p_resource_id uuid, p_resource_type character varying,
10-
p_parent_id uuid DEFAULT NULL::uuid, p_current_level integer DEFAULT 0
11-
)
8+
CREATE OR REPLACE FUNCTION public.get_comments(p_resource_id uuid, p_resource_type character varying, p_parent_id uuid DEFAULT NULL::uuid, p_current_level integer DEFAULT 0)
129
RETURNS json
1310
LANGUAGE plpgsql
1411
AS $function$

0 commit comments

Comments
 (0)