@@ -77,8 +77,8 @@ export class TagRepository {
7777 if ( dto . value ) {
7878 // propagate value update downstream
7979 const descendantIds = await this . getDescendantIds ( id ) ;
80- const descendants = await this . getMany ( descendantIds . filter ( _id => _id !== id ) ) ;
81- const childrenByParentId = new Map < string , { id : string , value : string } [ ] > ( ) ;
80+ const descendants = await this . getMany ( descendantIds . filter ( ( _id ) => _id !== id ) ) ;
81+ const childrenByParentId = new Map < string , { id : string ; value : string } [ ] > ( ) ;
8282 for ( const descendant of descendants ) {
8383 const parentId = descendant . parentId ;
8484 if ( parentId ) {
@@ -89,7 +89,7 @@ export class TagRepository {
8989 }
9090 }
9191
92- const queue : { id : string ; value : string } [ ] = [ { id, value : updated . value } ] ;
92+ const queue : { id : string ; value : string } [ ] = [ { id, value : updated . value } ] ;
9393 for ( let i = 0 ; i < queue . length ; i ++ ) {
9494 const { id, value } = queue [ i ] ;
9595 const children = childrenByParentId . get ( id ) ?? [ ] ;
@@ -98,26 +98,26 @@ export class TagRepository {
9898 const item = { id : child . id , value : `${ value } /${ name } ` } ;
9999 queue . push ( item ) ;
100100 }
101- }
101+ }
102102
103- const toUpdate = queue . slice ( 1 ) ;
104- if ( toUpdate . length > 0 ) {
105- await sql `
103+ const toUpdate = queue . slice ( 1 ) ;
104+ if ( toUpdate . length > 0 ) {
105+ await sql `
106106 UPDATE tags
107107 SET value = updates.value
108108 FROM (
109109 VALUES
110110 ${ sql . join (
111- toUpdate . map ( u => sql `(${ sql `${ u . id } ::uuid` } , ${ u . value } )` ) ,
112- sql `, `
111+ toUpdate . map ( ( u ) => sql `(${ sql `${ u . id } ::uuid` } , ${ u . value } )` ) ,
112+ sql `, ` ,
113113 ) }
114114 ) AS updates(id, value)
115115 WHERE tags.id = updates.id
116116 ` . execute ( tx ) ;
117- } ;
117+ }
118118 }
119119 } ) ;
120-
120+
121121 return updated ! ;
122122 }
123123
@@ -232,10 +232,10 @@ export class TagRepository {
232232 . where ( 'id_ancestor' , '=' , ancestorId )
233233 . execute ( ) ;
234234
235- return results . map ( r => r . id_descendant ) ;
235+ return results . map ( ( r ) => r . id_descendant ) ;
236236 }
237237
238- async updateTagClosures ( tag : { id : string , parentId ?: string | null } , tx : Transaction < DB > ) {
238+ async updateTagClosures ( tag : { id : string ; parentId ?: string | null } , tx : Transaction < DB > ) {
239239 // update closure table
240240 await tx
241241 . insertInto ( 'tags_closure' )
0 commit comments