mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Fix user notes not restoring when manga doesn't exist in DB (#1945)
This commit is contained in:
		| @@ -120,6 +120,7 @@ class MangaRepositoryImpl( | ||||
|                 dateAdded = manga.dateAdded, | ||||
|                 updateStrategy = manga.updateStrategy, | ||||
|                 version = manga.version, | ||||
|                 notes = manga.notes, | ||||
|             ) | ||||
|             mangasQueries.selectLastInsertedRowId() | ||||
|         } | ||||
|   | ||||
| @@ -83,8 +83,8 @@ getReadMangaNotInLibrary: | ||||
| SELECT * | ||||
| FROM mangas | ||||
| WHERE favorite = 0 AND _id IN ( | ||||
|     SELECT DISTINCT chapters.manga_id  | ||||
|     FROM chapters  | ||||
|     SELECT DISTINCT chapters.manga_id | ||||
|     FROM chapters | ||||
|     WHERE read = 1 OR last_page_read != 0 | ||||
| ); | ||||
|  | ||||
| @@ -151,8 +151,8 @@ WHERE favorite = 0 | ||||
| AND source IN :sourceIds; | ||||
|  | ||||
| insert: | ||||
| INSERT INTO mangas(source, url, artist, author, description, genre, title, status, thumbnail_url, favorite, last_update, next_update, initialized, viewer, chapter_flags, cover_last_modified, date_added, update_strategy, calculate_interval, last_modified_at, version) | ||||
| VALUES (:source, :url, :artist, :author, :description, :genre, :title, :status, :thumbnailUrl, :favorite, :lastUpdate, :nextUpdate, :initialized, :viewerFlags, :chapterFlags, :coverLastModified, :dateAdded, :updateStrategy, :calculateInterval, 0, :version); | ||||
| INSERT INTO mangas(source, url, artist, author, description, genre, title, status, thumbnail_url, favorite, last_update, next_update, initialized, viewer, chapter_flags, cover_last_modified, date_added, update_strategy, calculate_interval, last_modified_at, version, notes) | ||||
| VALUES (:source, :url, :artist, :author, :description, :genre, :title, :status, :thumbnailUrl, :favorite, :lastUpdate, :nextUpdate, :initialized, :viewerFlags, :chapterFlags, :coverLastModified, :dateAdded, :updateStrategy, :calculateInterval, 0, :version, :notes); | ||||
|  | ||||
| update: | ||||
| UPDATE mangas SET | ||||
|   | ||||
		Reference in New Issue
	
	Block a user