client.js
// searchMultipleParameters resolve the promises from searchOnAllCells and display an error in case something went wrong, or a log in case everything was fine
searchMultipleParameters resolve the promises from searchOnAllCells and display an error in case something went wrong, or a log in case everything was fine
searchMultipleParameters resolve the promises from searchOnAllCells and display an error in case something went wrong or a log in case everything was fine
async function searchMultipleParameters(title, videoId, description="", isPublic=true, searchOnlyId=true) {
    searchOnAllCells({
        title, 
        videoId, 
        description, 
        isPublic, 
        searchOnlyId
    }).then((data) => {
        let any_errors = false
        for(let i = 0; i < data.length; ++i){
            if(data[i].success === false){
                console.error("ALERT", data[i])
                any_errors = true
            }
        }
        if(!any_errors){
            console.log("Everything is working!")
        }
    })
}
async function searchMultipleParameters ( title , videoId , description = "" , isPublic = true , searchOnlyId = true ) { searchOnAllCells ( { title , videoId , description , isPublic , searchOnlyId } ) . then ( ( data ) => { let any_errors = false for ( let i = 0 ; i < data . length ; ++ i ) { if ( data [ i ] . success === false ) { console . error ( "ALERT" , data [ i ] ) any_errors = true } } if ( ! any_errors ) { console . log ( "Everything is working!" ) } } ) }
searchMultipleParameters resolve the promises from searchOnAllCells and display an error in case something went wrong, or a log in case everything was fine
searchMultipleParameters resolve the promises from searchOnAllCells and display an error in case something went wrong or a log in case everything was fine
// TODO: Alert