ShokoAnime / ShokoServer

Repository for Shoko Server.
http://shokoanime.com/shoko-server/
MIT License
386 stars 75 forks source link

Fix group refreshing for good #1145

Closed cxooda closed 1 month ago

cxooda commented 1 month ago

Attempting to delete the temp group here would throw NHibernate.StaleStateException : Unexpected row count: 0; expected: 1

That is because it's not being added to the db in the first place, or as line 76 in AnimeGroupCreator.cs states: "We won't use AnimeGroupRepository.Save because we don't need to perform all the extra stuff since this is for temporary use only"

cxooda commented 1 month ago

closed because I didn't realize this was already fixed at the time https://github.com/ShokoAnime/ShokoServer/commit/09b0dbad93769fc603cf94fe3186f192f502f178