Can’t override post type using custom Elementor query

Fixing a small typo should be it (untested):

add_action( 'elementor/query/latest-posts-home', function ( $query ) {
    $query->set( 'post_type', array( 'alicorn_case_studies', 'post' ) );
} );

The parameter post-type should be post_type.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)