Async/await not working...?

You’re nesting promises instead of chaining them, and that’s not so good practice. When you nest promises it makes it hard to read and follow and is prone to bugs.

this is not a good practice:

promise1()
.then(r => {
	promise2(r)
	.then(r => {
		promise3()
	})
})

This will be better:

promise1()
.then(r => {
	return promise2(r);
})
.then(r => {
	return promise3()
})

Try to rewrite it and see if the issue is still there.