update Bookmark D B
fun updateBookmarkDB(userVal: String?, postKey: String?, postVal: String?)
Content copied to clipboard
Updates the bookmark status of a post on the database.
Parameters
userVal
Username of the user who bookmarked or removed the bookmark on a post.
postKey
Unique identifier of the post whose bookmark status is being toggled.
postVal
Unique identifier of the post to be added or removed from the user's list of bookmarked posts.