Fix getting one namespace
Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
parent
51c74de1de
commit
26ffd2fd22
1 changed files with 1 additions and 2 deletions
|
@ -133,8 +133,7 @@ func (n *Namespace) CheckIsArchived() error {
|
|||
// @Failure 500 {object} models.Message "Internal error"
|
||||
// @Router /namespaces/{id} [get]
|
||||
func (n *Namespace) ReadOne() (err error) {
|
||||
// Get the namespace Owner
|
||||
n.Owner, err = user.GetUserByID(n.OwnerID)
|
||||
*n, err = GetNamespaceByID(n.ID)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue