unlinkPlexUserId(username) {
    return new Promise((resolve, reject) => {
      this.database.run(this.queries.unlink, username)
        .then(row => resolve(row))
        .catch(error => {
          // TODO log this unknown db error
          console.log('db error', error)

          reject({
            status: 500,
            message: 'An unexpected error occured while unlinking plex and seasoned accounts',
            source: 'seasoned database'
          })
        })
    })
  }
/**
  * Unlink plex userid with seasoned user
  * @param {User} user the user you want to lunk plex userid with
  * @returns {Promsie}
  */
Unlink plex userid with seasoned user
@param {User} user the user you want to lunk plex userid with
@returns {Promsie}
Unlink plex userid with seasoned user @param { User } user the user you want to lunk plex userid with @returns { Promsie }
unlinkPlexUserId(username) {
    return new Promise((resolve, reject) => {
      this.database.run(this.queries.unlink, username)
        .then(row => resolve(row))
        .catch(error => {
          console.log('db error', error)
          reject({
            status: 500,
            message: 'An unexpected error occured while unlinking plex and seasoned accounts',
            source: 'seasoned database'
          })
        })
    })
  }
unlinkPlexUserId ( username ) { return new Promise ( ( resolve , reject ) => { this . database . run ( this . queries . unlink , username ) . then ( row => resolve ( row ) ) . catch ( error => { console . log ( 'db error' , error ) reject ( { status : 500 , message : 'An unexpected error occured while unlinking plex and seasoned accounts' , source : 'seasoned database' } ) } ) } ) }
Unlink plex userid with seasoned user
 @param {User} user the user you want to lunk plex userid with
 @returns {Promsie}
Unlink plex userid with seasoned user @param { User } user the user you want to lunk plex userid with @returns { Promsie }
// TODO log this unknown db error