Skip to content
Snippets Groups Projects
Verified Commit 1b5a8e30 authored by Ruben Backx's avatar Ruben Backx :coffee:
Browse files

Add API parameter in async method

parent f764a7d1
No related branches found
No related tags found
1 merge request!22Deploy fix
Pipeline #1012689 passed
......@@ -205,8 +205,18 @@ public class GitlabProjectService {
* @param projectIdOrPath the path or id of the project
* @return a Project instance from the given path or id
*/
public Optional<Project> getProject(IdOrPath<?> projectIdOrPath) {
public Optional<Project> getProject(GitLabApi gitLabApi, IdOrPath<?> projectIdOrPath) {
return gitLabApi.getProjectApi().getOptionalProject(projectIdOrPath.value());
}
/**
* Gets a project.
*
* @param projectIdOrPath the path or id of the project
* @return a Project instance from the given path or id
*/
public Optional<Project> getProject(IdOrPath<?> projectIdOrPath) {
return getProject(gitLabApi, projectIdOrPath);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment