Mongoose Unexpected identifier

do not understand why add await userInfo.save (); to report Unexpected identifier error, really can not find the problem, ask God for help, thank you!
const config = require (".. / config")
const axios = require ("axios")
const mongoose = require (" mongoose")
const User = mongoose.model ("User")
/ / console.log (" User");
/ / console.log (User);
module.exports = async function (code) {

var url = [
  config.wechat,
  "?appid=",
  config.appId,
  "&secret=",
  config.appSecret,
  "&js_code=",
  code,
  "&grant_type=authorization_code"
].join("")

axios.get(url)
  .then(function(response){
    const userInfo = new User({
      sessionKey:response.data.session_key,
      openid:response.data.openid
    })
    console.log("userInfo");
    console.log(userInfo);
    await userInfo.save();
  })
  .catch(function(error){
    console.log(error);
  });

}

Sep.01,2021

Hello, landlord! There is something wrong with what you wrote. Change
to the following code, try it ~

  

Thank you very much, but I did not understand async thoroughly

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38a5a-2c134.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38a5a-2c134.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?