refactor: adjust to changes in core definitions

This commit is contained in:
Rainer Killinger
2022-01-25 15:24:01 +01:00
parent c0d0b1bd99
commit d86a7353dd
8 changed files with 2436 additions and 2149 deletions

View File

@@ -29,6 +29,7 @@ import {
SCThingType,
SCSaveableThing,
SCFeedbackRequest,
SCFeedbackResponse,
} from '@openstapps/core';
import {chunk, fromPairs, toPairs} from 'lodash-es';
import {environment} from '../../../environments/environment';
@@ -299,7 +300,11 @@ export class DataProvider {
* @param feedback Feedback message to be sent to the backend
*/
async sendFeedback(feedback: SCFeedbackRequest) {
return this.client.feedback(feedback);
return this.client.invokePlugin<SCFeedbackResponse>(
'feedback',
undefined,
feedback,
);
}
/**