This is my code now:
$fastigheter = get_posts ([
'post_type' => 'fastigheter',
'numberposts' => -1,
'meta-query' => [
'relation' => 'OR',
[
'key' => 'byggstatus',
'value' => 'Renoveras',
'compare' => '='
],
[
'key' => 'byggstatus',
'value' => 'Under Uppbyggnad',
'compare' => '='
]
]
]);
I still get all the posts in the fastigheter cpt.