Make sure the archived parameter is set in URL

Signed-off-by: ivgo <ivgo@spreadgroup.com>
This commit is contained in:
ivgo
2023-09-26 13:57:27 +02:00
parent 7accd01a2c
commit e26868601e
@@ -309,7 +309,7 @@ export class GitLabClient {
): Promise<PagedResponse<T>> {
const request = new URL(`${this.config.apiBaseUrl}${endpoint}`);
for (const key in options) {
if (options[key]) {
if (options[key] !== undefined && options[key] !== '') {
request.searchParams.append(key, options[key]!.toString());
}
}