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
@@ -125,3 +125,8 @@ func DeleteUserSessions(db *gorm.DB, table, userID, instanceID string) error {
)
return delete(db)
}
func DeleteInstanceUserSessions(db *gorm.DB, table, instanceID string) error {
delete := repository.PrepareDeleteByKey(table, model.UserSessionSearchKey(usr_model.UserSessionSearchKeyInstanceID), instanceID)
return delete(db)
}