app/repository/ArtistRepository.java
public CompletionStage<Optional<ArrayList<Integer>>> unfollowArtist(int artId, int profileId) {
        return supplyAsync(() -> {
            String updateQuery = "DELETE from follow_artist where profile_id = ? and artist_id =  ?";
            SqlUpdate query = Ebean.createSqlUpdate(updateQuery);
            query.setParameter(1, profileId);
            query.setParameter(2, artId);
            query.execute();
            return getFollowedArtistIds(profileId);
        });
    }
/**
     * Method to allow a user to un-follow a given artist
     *
     * @param artId    Id of the artist to be un-followed
     * @param profileId Id of the user that wants to un-follow a artist
     * @return Optional list of integers for the followed artist ids
     */
Method to allow a user to un-follow a given artist
@param artId    Id of the artist to be un-followed
@param profileId Id of the user that wants to un-follow a artist
@return Optional list of integers for the followed artist ids
Method to allow a user to un - follow a given artist @param artId Id of the artist to be un - followed @param profileId Id of the user that wants to un - follow a artist @return Optional list of integers for the followed artist ids
public CompletionStage<Optional<ArrayList<Integer>>> unfollowArtist(int artId, int profileId) {
        return supplyAsync(() -> {
            String updateQuery = "DELETE from follow_artist where profile_id = ? and artist_id =  ?";
            SqlUpdate query = Ebean.createSqlUpdate(updateQuery);
            query.setParameter(1, profileId);
            query.setParameter(2, artId);
            query.execute();
            return getFollowedArtistIds(profileId);
        });
    }
public CompletionStage < Optional < ArrayList < Integer > > > unfollowArtist ( int artId , int profileId ) { return supplyAsync ( ( ) -> { String updateQuery = "DELETE from follow_artist where profile_id = ? and artist_id =  ?" ; SqlUpdate query = Ebean . createSqlUpdate ( updateQuery ) ; query . setParameter ( 1 , profileId ) ; query . setParameter ( 2 , artId ) ; query . execute ( ) ; return getFollowedArtistIds ( profileId ) ; } ) ; }
Method to allow a user to un-follow a given artist
 @param artId    Id of the artist to be un-followed
 @param profileId Id of the user that wants to un-follow a artist
 @return Optional list of integers for the followed artist ids
Method to allow a user to un - follow a given artist @param artId Id of the artist to be un - followed @param profileId Id of the user that wants to un - follow a artist @return Optional list of integers for the followed artist ids