fix(token revoke)

This commit is contained in:
DeniskaRediska committed 2019-11-12 16:17:37 +03:00
1 parent 0aec014161
commit 0aa1dc40fd
9 files changed
+149 -98

No files matched your search

+1 -1
View File
@@ -162,7 +162,7 @@ func (applicationController) DeleteApplications(list []int32) (domain.DeleteResp
appRep model.AppRepository, tokenRep model.TokenRepository, accessRep model.AccessListRepository) error {
for _, appId := range list {
if _, err := Token.revokeTokensForApp(domain.Identity{appId}, &tokenRep); err != nil {
if _, err := Token.revokeTokensForApp(domain.Identity{Id: appId}, &tokenRep); err != nil {
return err
}
}