Move relevant methods from Title to Entry

This commit is contained in:
Alex Ling
2020-06-13 15:54:55 +00:00
parent c8be2849b9
commit 9302601307
4 changed files with 76 additions and 94 deletions

View File

@@ -80,7 +80,7 @@ class APIRouter < Router
if !entry_id.nil?
entry = title.get_entry(entry_id).not_nil!
raise "incorrect page value" if page < 0 || page > entry.pages
title.save_progress username, entry.title, page
entry.save_progress username, page
elsif page == 0
title.unread_all username
else