Skip to content

Commit 37b14b5

Browse files
authored
Fix for macros not running in variable queries. (#100)
1 parent 1cbc55d commit 37b14b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/datasource.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export class JsonDataSource extends DataSourceApi<JsonApiQuery, JsonApiDataSourc
5757
*
5858
* @param query
5959
*/
60-
async metricFindQuery?(query: JsonApiQuery): Promise<MetricFindValue[]> {
61-
const frames = await this.doRequest(query);
60+
async metricFindQuery?(query: JsonApiQuery, options: Record<string, any>): Promise<MetricFindValue[]> {
61+
const frames = await this.doRequest(query, options.range);
6262
const frame = frames[0];
6363

6464
if (!frame.fields.length) {

0 commit comments

Comments
 (0)