Skip to content

Commit

Permalink
Merge pull request #107 from SAP/minutes-to-autores
Browse files Browse the repository at this point in the history
ADD Support for Minutes Semantic Period
  • Loading branch information
vienlam authored Feb 16, 2024
2 parents 7dca0c3 + d91d259 commit a6479e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sap-alm-dp-api-datasource/src/DataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ export class DataSource extends DataSourceApi<MyQuery, MyDataSourceOptions> {
translateToPeriodUnit(unit: string): string {
if (unit) {
switch (unit) {
case 'h':
return 'H';
case 'd':
return 'D';
case 'w':
Expand All @@ -280,7 +282,7 @@ export class DataSource extends DataSourceApi<MyQuery, MyDataSourceOptions> {
case 'y':
return 'Y';
default:
return 'H';
return 'Mi';
}
}
return '';
Expand Down

0 comments on commit a6479e0

Please sign in to comment.