]> source.dussan.org Git - gitea.git/commit
Fix team members API endpoint pagination (#24754)
authorYarden Shoham <git@yardenshoham.com>
Wed, 17 May 2023 00:12:37 +0000 (03:12 +0300)
committerGitHub <noreply@github.com>
Wed, 17 May 2023 00:12:37 +0000 (08:12 +0800)
commit0a3c4d4a595cc7e12462dde393ed64186260f26b
tree5c98ba3ef7b0b85e3ba2af61e7b33ae27d9b9261
parent584c0789fa72f5e21167ba5f1370b7918e604247
Fix team members API endpoint pagination (#24754)

Now it's 1-based instead of 0-based

- Fixes #24747

### Before

![image](https://github.com/go-gitea/gitea/assets/20454870/9b58ecfa-666c-4b78-bd0f-93233efeecbd)

### After

![image](https://github.com/go-gitea/gitea/assets/20454870/103b767a-e02e-4473-9f9f-5a676a61c174)

## :warning: BREAKING :warning:
Previous API consumers may have relied on the 0-based pagination of this
endpoint. The page numbering now starts at 1, as documented.

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
models/organization/team_user.go