Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
fix: minute (m) shift period is casted to month (M) (fixes #306, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ofir5300 committed Aug 4, 2021
1 parent 22b97e8 commit b7da104
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ export class BigQueryDatasource {
public static _getShiftPeriod(strInterval) {
const shift = strInterval.match(/\d+/)[0];
strInterval = strInterval.substr(shift.length, strInterval.length);
if (strInterval === 'm') {
strInterval = 'M';
}

if (strInterval.trim() === 'min') {
strInterval = 'm';
Expand Down Expand Up @@ -122,9 +119,6 @@ export class BigQueryDatasource {
query.format = query.format.substr(0, index);
strInterval = res[0];
const shift = res[1];
if (strInterval === 'm') {
strInterval = 'M';
}

if (strInterval === 'min') {
strInterval = 'm';
Expand Down

0 comments on commit b7da104

Please sign in to comment.