function updateWriterProfile(changes, writer_id) {
    return db("writer_profiles")
        .where({
            writer_id,
        })
        .first()
        .update(changes);
}
//updates data on a writer user profile
updates data on a writer user profile
updates data on a writer user profile
function updateWriterProfile(changes, writer_id) {
    return db("writer_profiles")
        .where({
            writer_id,
        })
        .first()
        .update(changes);
}
function updateWriterProfile ( changes , writer_id ) { return db ( "writer_profiles" ) . where ( { writer_id , } ) . first ( ) . update ( changes ) ; }
updates data on a writer user profile
updates data on a writer user profile