Skip to content

Commit

Permalink
Fix # 3447 time submitting used wrong id on Gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
d-r-e committed Sep 17, 2024
1 parent e0312ef commit 71a1d22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ export class GitlabApiService {
time_estimate: null | number;
total_time_spent: null | number;
}*/
const iid = this._getIidFromIssue(issueId);

return this._sendRawRequest$(
{
url: `${this._apiLink(
cfg,
cfg.project || undefined,
)}/issues/${iid}/add_spent_time`,
)}/issues/${issueId}/add_spent_time`,
method: 'POST',
data: {
duration,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class GitlabCommonInterfacesService implements IssueServiceInterface {
issuePoints: issue.weight,
issueWasUpdated: false,
issueLastUpdated: new Date(issue.updated_at).getTime(),
issueId: issue.id as string,
issueId: issue.number.toString(),
};
}

Expand Down

0 comments on commit 71a1d22

Please sign in to comment.