feat(services): mark blob validation as TODO in brand service

A TODO comment has been added to the `brand.service.ts` file indicating that blob validation needs to be implemented in the future, for both the 'create' and 'update' functions in the brand service.

Issue: #13
Signed-off-by: Mathis <yidhra@tuta.io>
This commit is contained in:
Mathis H (Avnyr) 2024-04-26 10:00:55 +02:00
parent a811a2ece2
commit 0a6321deb0
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -6,7 +6,7 @@ import { v4 as uuidv4 } from 'uuid';
const DbHandler = new MysqlService.Handler('BrandService')
const logger = new Logger({name: 'BrandService'})
//SEC Blob validation
//SEC todo Blob validation
/**
* Creates a brand in the database with the given data.
*
@ -34,6 +34,7 @@ async function createBrand(data: IDbBrand): Promise<unknown> {
return { error: 'failed' };
}
//SEC todo Blob validation
/**
* Updates a brand in the database.
*
@ -98,7 +99,6 @@ async function getBySlugBrand(brandSlug: string): Promise<IDbBrand | false> {
return brand;
}
/**
* Retrieves a brand from the database based on the provided brand ID.
*