1
0

chore(api tokens): remove updated date from tokens as it can't be updated anyway

This commit is contained in:
kolaente
2023-09-01 11:16:36 +02:00
parent 8f3d18a809
commit e3c5a93f4f
4 changed files with 2 additions and 8 deletions

View File

@ -121,7 +121,7 @@ func CollectRoutesForAPITokenUsage(route echo.Route) {
// @tags api
// @Produce json
// @Security JWTKeyAuth
// @Success 200 {array} routes.APITokenRoute "The list of all routes."
// @Success 200 {array} models.APITokenRoute "The list of all routes."
// @Router /routes [get]
func GetAvailableAPIRoutesForToken(c echo.Context) error {
return c.JSON(http.StatusOK, apiTokenRoutes)

View File

@ -51,8 +51,6 @@ type APIToken struct {
// A timestamp when this api key was created. You cannot change this value.
Created time.Time `xorm:"created not null" json:"created"`
// A timestamp when this api key was last updated. You cannot change this value.
Updated time.Time `xorm:"updated not null" json:"updated"`
OwnerID int64 `xorm:"bigint not null" json:"-"`