fix: instance remove (#4602)

This commit is contained in:
Livio Spring
2022-10-26 13:06:48 +00:00
committed by GitHub
parent 001636f2b4
commit d721f725fd
89 changed files with 655 additions and 121 deletions
@@ -97,3 +97,8 @@ func DeleteApplicationTokens(db *gorm.DB, table, instanceID string, appIDs []str
)
return delete(db)
}
func DeleteInstanceTokens(db *gorm.DB, table, instanceID string) error {
delete := repository.PrepareDeleteByKey(table, usr_model.TokenSearchKey(model.TokenSearchKeyInstanceID), instanceID)
return delete(db)
}