Skip to content
Snippets Groups Projects
Commit 3605016c authored by michael.minelli's avatar michael.minelli
Browse files

GitlabManager => Update type for newer gitbeaker version

parent de8af98a
No related branches found
No related tags found
No related merge requests found
import axios from 'axios';
import * as GitlabCore from '@gitbeaker/core';
import { GitbeakerRequestError } from '@gitbeaker/requester-utils';
import { Gitlab, PipelineSchema, ProjectSchema, UserSchema } from '@gitbeaker/rest';
import GitlabToken from '../types/Gitlab/GitlabToken.js';
import axios from 'axios';
import * as GitlabCore from '@gitbeaker/core';
import { GitbeakerRequestError } from '@gitbeaker/requester-utils';
import { Gitlab, PipelineSchema, ProjectSchema, SimpleUserSchema, UserSchema } from '@gitbeaker/rest';
import GitlabToken from '../types/Gitlab/GitlabToken.js';
class SharedGitlabManager {
......@@ -63,7 +63,7 @@ class SharedGitlabManager {
}
}
public async getUserByUsername(username: string): Promise<UserSchema | undefined> {
public async getUserByUsername(username: string): Promise<SimpleUserSchema | undefined> {
try {
return await this.executeGitlabRequest(async () => {
const user = await this.api.Users.all({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment