This angular error came up to me with this snippet:
error TS2339: Property 'then' does not exist on type 'Observable<unknown>'
this.userService.updateFavorites(id)
.then(async data => {
....
The solution is to convert an Observable to a Promise RxJS firstValueFrom & lastValueFrom
import {firstValueFrom} from 'rxjs';
firstValueFrom(this.userService.updateFavorites(id)
.then(async (data: any) => {
....