ArgumentCountError thrown

Too few arguments to function set_post_thumbnail(), 1 passed in /nas/content/live/menellproject/wp-content/themes/centra-sg-theme/functions.php on line 122 and exactly 2 expected