mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:57:32 +00:00
fix: instance remove (#4602)
This commit is contained in:
@@ -94,3 +94,8 @@ func DeleteApplicationRefreshTokens(db *gorm.DB, table string, appIDs []string)
|
||||
delete := repository.PrepareDeleteByKey(table, usr_model.RefreshTokenSearchKey(model.RefreshTokenSearchKeyApplicationID), appIDs)
|
||||
return delete(db)
|
||||
}
|
||||
|
||||
func DeleteInstanceRefreshTokens(db *gorm.DB, table string, instanceID string) error {
|
||||
delete := repository.PrepareDeleteByKey(table, usr_model.RefreshTokenSearchKey(model.RefreshTokenSearchKeyInstanceID), instanceID)
|
||||
return delete(db)
|
||||
}
|
||||
|
Reference in New Issue
Block a user