Open longnd opened 1 year ago
Some functions' name does not match with what they actually do, for example
The function to get keyword lists is named as getUsers https://github.com/aungkoko1234/web-scrapper-backend/blob/9c520dc93598646fcc0f72d54845ec7a2838a985/src/keywords/keywords.controller.ts#L39-L42
getUsers
The functions to upload CSV file are named as uploadImage & uploadImageToS3 https://github.com/aungkoko1234/web-scrapper-backend/blob/9c520dc93598646fcc0f72d54845ec7a2838a985/src/keywords/keywords.controller.ts#L74-L83
uploadImage
uploadImageToS3
The function to process keyword searching is named as handleSyncMoodNote which is irrelevant https://github.com/aungkoko1234/web-scrapper-backend/blob/9c520dc93598646fcc0f72d54845ec7a2838a985/src/keywords/keywords.processor.ts#L19-L22
handleSyncMoodNote
The function to handle CSV file upload to S3 treat the file as image, e.g. there is even the imageBucket used https://github.com/aungkoko1234/web-scrapper-backend/blob/9c520dc93598646fcc0f72d54845ec7a2838a985/src/helpers/helpers.service.ts#L15-L22
imageBucket
Proper name for functions & variables
Yeah, that s right.Function and variables name should be declared properly. My bad.
Issue
Some functions' name does not match with what they actually do, for example
The function to get keyword lists is named as
getUsers
https://github.com/aungkoko1234/web-scrapper-backend/blob/9c520dc93598646fcc0f72d54845ec7a2838a985/src/keywords/keywords.controller.ts#L39-L42The functions to upload CSV file are named as
uploadImage
&uploadImageToS3
https://github.com/aungkoko1234/web-scrapper-backend/blob/9c520dc93598646fcc0f72d54845ec7a2838a985/src/keywords/keywords.controller.ts#L74-L83The function to process keyword searching is named as
handleSyncMoodNote
which is irrelevant https://github.com/aungkoko1234/web-scrapper-backend/blob/9c520dc93598646fcc0f72d54845ec7a2838a985/src/keywords/keywords.processor.ts#L19-L22The function to handle CSV file upload to S3 treat the file as image, e.g. there is even the
imageBucket
used https://github.com/aungkoko1234/web-scrapper-backend/blob/9c520dc93598646fcc0f72d54845ec7a2838a985/src/helpers/helpers.service.ts#L15-L22Expected
Proper name for functions & variables