Make sure the archived parameter is set in URL
Signed-off-by: ivgo <ivgo@spreadgroup.com>
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user