title: Promise may not be fulfilled with 'undefined' when statusCode is not 204
body: <p>There are two steps in my functionality
  1. I am trying to save employee data using the entity concept 
  2. Once it is saved I am calling a stored procedure, to which I am passing the output from saveemployee output of step 1.</p>
  
  <p>Below is my function</p>
  
  <pre><code>    saveMultipleEmployee = async (uploadedData, connect) =&gt; {
          try {
            var getConn = await Connection.get().getConnectionDB(connect)
            const multipleEmployeeRepository = getConn.getRepository(MultipleEmployee);
            const multipleEmployeeResult = await multipleEmployeeRepository.save(uploadedData);
            var arrayToString = JSON.stringify(multipleEmployeeResult);
              let customPositionResultAfterInsert = await entityManager.query(`exec [dfed].[save_multiple_employee_data]`);
              console.log('customPositionResultAfterInsert',customPositionResultAfterInsert)
           return true
          }
          catch (err) {
            return err;
          }
  </code></pre>
  
  <p>I am getting the below errors in console</p>
  
  <pre><code>     {"level":50,"time":1590553808199,"pid":31444,"hostname":"DE-DACAPPSWV745","reqId":18,"err":{"type":"FastifyError","message":"FST_ERR_PROMISE_NOT_FULLFILLED: Promise may not be fulfilled with 'undefined' when statusCode is not 204","stack":"FastifyError [FST_ERR_PROMISE_NOT_FULLFILLED]: FST_ERR_PROMISE_NOT_FULLFILLED: Promise may not be fulfilled with 'undefined' when statusCode is not 204\n    at E:\\Rajitha\\queenbackend\\dfed\\node_modules\\fastify\\lib\\wrapThenable.js:34:30\n    at processTicksAndRejections (internal/process/task_queues.js:93:5)","name":"FastifyError [FST_ERR_PROMISE_NOT_FULLFILLED]","code":"FST_ERR_PROMISE_NOT_FULLFILLED","statusCode":500},"msg":"Promise may not be fulfilled with 'undefined' when statusCode is not 204","v":1}
  </code></pre>