🔧 Refactoring

This commit is contained in:
2021-06-17 08:01:41 -07:00
parent 2bf74985a1
commit 0ce0cc43c2
4 changed files with 14 additions and 12 deletions

View File

@@ -37,14 +37,14 @@ export default class ProductsService extends Service {
params: {},
async handler(
ctx: Context<{
path: string;
imageFile: string | Buffer;
newWidth: number;
newHeight: number;
outputPath: string;
}>
) {
const resizeResult = await resizeImage(
ctx.params.path,
ctx.params.imageFile,
ctx.params.outputPath,
ctx.params.newWidth,
ctx.params.newHeight