Last active
May 29, 2022 16:51
-
-
Save PamornT/ee0447b04c1f07c29bafa17e4befde65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Handle events | |
events.forEach(async(event) => { | |
if (event.type === 'videoPlayComplete') { | |
await savePointVideoComlete(event) | |
} | |
console.log(event) | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment