[PR #153] [MERGED] fixed bug #151 caused Find should be Get #15187

Closed
opened 2025-11-02 11:40:52 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/153
Author: @lunny
Created: 11/11/2016
Status: Merged
Merged: 11/11/2016
Merged by: @thibaultmeyer

Base: masterHead: lunny/bug_fixed_151


📝 Commits (1)

📊 Changes

4 files changed (+29 additions, -21 deletions)

View changed files

📝 models/error.go (+4 -3)
📝 models/login_source.go (+7 -7)
📝 models/user.go (+17 -10)
📝 models/user_mail.go (+1 -1)

📄 Description

When get some one object, use Get. When get a collection of objects, use Find.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/153 **Author:** [@lunny](https://github.com/lunny) **Created:** 11/11/2016 **Status:** ✅ Merged **Merged:** 11/11/2016 **Merged by:** [@thibaultmeyer](https://github.com/thibaultmeyer) **Base:** `master` ← **Head:** `lunny/bug_fixed_151` --- ### 📝 Commits (1) - [`ec7b136`](https://github.com/go-gitea/gitea/commit/ec7b136ab9fa4a4f9bb9c1f8c937951d5e163da7) fixed bug #151 caused Find should be Get ### 📊 Changes **4 files changed** (+29 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `models/error.go` (+4 -3) 📝 `models/login_source.go` (+7 -7) 📝 `models/user.go` (+17 -10) 📝 `models/user_mail.go` (+1 -1) </details> ### 📄 Description When get some one object, use `Get`. When get a collection of objects, use `Find`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:40:52 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15187