generated from nhcarrigan/template
feat: ability to edit suggestions when accepting
This commit is contained in:
@@ -49,6 +49,10 @@ export class SuggestionService {
|
||||
return firstValueFrom(this.api.put<Suggestion>(`/suggestions/${id}/accept`, {}));
|
||||
}
|
||||
|
||||
async acceptSuggestionWithEdits(id: string, data: any): Promise<Suggestion> {
|
||||
return firstValueFrom(this.api.put<Suggestion>(`/suggestions/${id}/accept-with-edits`, data));
|
||||
}
|
||||
|
||||
async declineSuggestion(id: string, data: DeclineSuggestionDto): Promise<Suggestion> {
|
||||
return firstValueFrom(this.api.put<Suggestion>(`/suggestions/${id}/decline`, data));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user