@@ -195,8 +195,7 @@ export class TagService {
195195 value = Number . parseInt ( value as string ) ;
196196 }
197197
198- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
199- ( exsitingTag as any ) [ tagType . datatype ] = value as number ;
198+ exsitingTag . value_number = value as number ;
200199 break ;
201200 }
202201 throw new UnprocessableEntityException (
@@ -212,8 +211,7 @@ export class TagService {
212211 ) ;
213212 }
214213
215- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
216- ( exsitingTag as any ) [ tagType . datatype ] = value ;
214+ exsitingTag . value_string = value ;
217215 break ;
218216 }
219217
@@ -223,8 +221,7 @@ export class TagService {
223221 value = value === 'true' ;
224222 }
225223
226- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
227- ( exsitingTag as any ) [ tagType . datatype ] = value as boolean ;
224+ exsitingTag . value_boolean = value as boolean ;
228225 break ;
229226 }
230227
@@ -239,8 +236,17 @@ export class TagService {
239236 ) ;
240237 }
241238
242- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
243- ( exsitingTag as any ) [ tagType . datatype ] = new Date ( value ) ;
239+ exsitingTag . value_date = new Date ( value ) ;
240+ break ;
241+ }
242+ case DataType . LOCATION : {
243+ if ( typeof value !== 'string' ) {
244+ throw new UnprocessableEntityException (
245+ 'Value must be a string' ,
246+ ) ;
247+ }
248+
249+ exsitingTag . value_location = value ;
244250 break ;
245251 }
246252
@@ -264,7 +270,7 @@ export class TagService {
264270
265271 async deleteTag ( uuid : string ) : Promise < DeleteTagDto > {
266272 await this . tagRepository . delete ( { uuid } ) ;
267- return { } ;
273+ return { success : true } ;
268274 }
269275
270276 async getAll ( skip : number , take : number ) : Promise < TagTypesDto > {
0 commit comments