Last active
August 31, 2022 09:48
-
-
Save pavanjoshi914/d2ddd525127f9815bdc3ceb8f2e76590 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
// fetching metadata json ojbect stored in the column named metadataObject | |
const metadata = await db.metadata.get('metadataObject') | |
.where("host") | |
.equalsIgnoreCase(current_running_host) | |
.first(); | |
for (const [key, value] of Object.entries(metadata)) { | |
if (key == "type") { | |
if (value == "AudioObject") { | |
// do something | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment