mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:37:32 +00:00
fix: custom message texts (#2046)
* fix: grpc implementation of custom message texts * fix: proto definition of RemoveHumanAvatar in mgmt api * fix: DeleteCustomText in view (respect key)
This commit is contained in:
@@ -78,10 +78,11 @@ func PutCustomText(db *gorm.DB, table string, customText *model.CustomTextView)
|
||||
return save(db, customText)
|
||||
}
|
||||
|
||||
func DeleteCustomText(db *gorm.DB, table, aggregateID, template, lang string) error {
|
||||
func DeleteCustomText(db *gorm.DB, table, aggregateID, template, lang, key string) error {
|
||||
aggregateIDSearch := repository.Key{Key: model.CustomTextSearchKey(iam_model.CustomTextSearchKeyAggregateID), Value: aggregateID}
|
||||
templateSearch := repository.Key{Key: model.CustomTextSearchKey(iam_model.CustomTextSearchKeyTemplate), Value: template}
|
||||
languageSearch := repository.Key{Key: model.CustomTextSearchKey(iam_model.CustomTextSearchKeyLanguage), Value: lang}
|
||||
delete := repository.PrepareDeleteByKeys(table, aggregateIDSearch, templateSearch, languageSearch)
|
||||
keySearch := repository.Key{Key: model.CustomTextSearchKey(iam_model.CustomTextSearchKeyKey), Value: key}
|
||||
delete := repository.PrepareDeleteByKeys(table, aggregateIDSearch, templateSearch, keySearch, languageSearch)
|
||||
return delete(db)
|
||||
}
|
||||
|
Reference in New Issue
Block a user