Struggling to update undefined or defined values in Mongoose due to the need to await their assignment. It seems like the code is not saving the data because USER.save() is executed before the values are set. How can I ensure that the data is updated/set before saving it?
const USER = await User.findById(await UserID)
USER.authToken = await authToken,
USER.displayName = await name,
USER.profilePic = await pic
await USER.save()