mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 04:14:49 +08:00
Chore/Tech debt: Remove (most) instances of $q angular service use (#20668)
* Chore/Tech debt: Remove (most) instances of $q angular service use Removes instances where the angular $q service is used and replaces it with native Promises.
This commit is contained in:
@ -1,9 +1,6 @@
|
||||
import _ from 'lodash';
|
||||
import { IQService } from 'angular';
|
||||
|
||||
export default class ResponseParser {
|
||||
constructor(private $q: IQService) {}
|
||||
|
||||
processQueryResult(res: any) {
|
||||
const data: any[] = [];
|
||||
|
||||
@ -125,7 +122,7 @@ export default class ResponseParser {
|
||||
}
|
||||
|
||||
if (timeColumnIndex === -1) {
|
||||
return this.$q.reject({
|
||||
return Promise.reject({
|
||||
message: 'Missing mandatory time column in annotation query.',
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user