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