Appt2 error

unhandled promise rejections are deprecated.In the future, promise rejections that are not handler will terminate the node.js process with a non-zero exit code