Skip to content

Commit d78a9cb

Browse files
committed
fix: missing duration normalization
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 6aa295d commit d78a9cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/abstractions/src/requestInformation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export class RequestInformation implements RequestInformationSetContent {
267267
}
268268
}
269269
if (typeof v === "boolean" || typeof v === "number" || typeof v === "string" || Array.isArray(v)) this.queryParameters[key] = v;
270-
else if (v instanceof DateOnly || v instanceof TimeOnly) this.queryParameters[key] = v.toString();
270+
else if (v instanceof DateOnly || v instanceof TimeOnly || v instanceof Duration) this.queryParameters[key] = v.toString();
271271
else if (v instanceof Date) this.queryParameters[key] = v.toISOString();
272272
else if (v === undefined) this.queryParameters[key] = undefined;
273273
});

0 commit comments

Comments
 (0)