mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Rename Id to ID for annotation models (#62886)
* Rename Id to ID for annotation models * Add xorm tags * Rename Id to ID for API key models * Add xorm tags
This commit is contained in:
@@ -98,7 +98,7 @@ func (api *ServiceAccountsAPI) ListTokens(ctx *contextmodel.ReqContext) response
|
||||
}
|
||||
|
||||
result[i] = TokenDTO{
|
||||
Id: token.Id,
|
||||
Id: token.ID,
|
||||
Name: token.Name,
|
||||
Created: &token.Created,
|
||||
Expiration: expiration,
|
||||
@@ -187,7 +187,7 @@ func (api *ServiceAccountsAPI) CreateToken(c *contextmodel.ReqContext) response.
|
||||
}
|
||||
|
||||
result := &dtos.NewApiKeyResult{
|
||||
ID: apiKey.Id,
|
||||
ID: apiKey.ID,
|
||||
Name: apiKey.Name,
|
||||
Key: newKeyInfo.ClientSecret,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user