Thank you for your contribution.
Not sure what you meant by this, are you updating the code in the main site and then selecting few parts and then updating it?
"We will use mahdiyari/steemauto-backend in curation_trail, fanbase, and schedule_posts
After finishing development of all sections in the mahdiyari/steemauto-backend (comment_upvote and claim_reward), I will remove all methods from /dash.php"
- +1 for using let and const instead of var.
- You can try using .map instead of for here
One more thing I have seen is that you are using the similar code in the number of files, can they be created as a function in a util class and then called it individually.
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Let me explain
I just finished development of curation_trail, fanbase, and schedule_post in the
mahdiyari/steemauto-backend
So, I just updated the code which was related to this parts in the main repository (mahdiyari/steemauto)
That similar codes are the old codes. I'm just re-coding steemauto (and I will fix that codes in the coming updates).
Also, I think using map is not possible in that case
// mysql will return this result const result = [{'SELECT EXISTS(SELECT `test` FROM `posts`)': 1}] result.map(res => console.log(res)) // {SELECT EXISTS(SELECT `test` FROM `posts`): 1} result[0].map(res => console.log(res)) // Uncaught TypeError: result[0].map is not a function
Thanks for your review
Thank you for your review, @codingdefined!
So far this week you've reviewed 9 contributions. Keep up the good work!