Clean up promise handling with resolvePromiseProperties | Netlify
resolvePromiseProperties allows you to take an object which has promises as some of its properties and get a promise that resolves to an object where all the promises are replaced with their resolved value.
netlify.com