1
0

Fix tests after renaming json fields to snake_case

This commit is contained in:
kolaente
2020-04-13 23:27:55 +02:00
parent 81990f3f80
commit 5832991c4d
13 changed files with 164 additions and 164 deletions

View File

@ -27,7 +27,7 @@ type NamespaceUser struct {
// The unique, numeric id of this namespace <-> user relation.
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id" param:"namespace"`
// The username.
Username string `xorm:"-" json:"userID" param:"user"`
Username string `xorm:"-" json:"user_id" param:"user"`
UserID int64 `xorm:"int(11) not null INDEX" json:"-"`
// The namespace id
NamespaceID int64 `xorm:"int(11) not null INDEX" json:"-" param:"namespace"`