Updates usage of resolve_remote_id

This commit is contained in:
Mouse Reeve
2021-02-16 19:35:43 -08:00
parent e2f921b7f5
commit 3f61675a0a
5 changed files with 9 additions and 7 deletions

View File

@ -7,7 +7,7 @@ class Connector(AbstractMinimalConnector):
''' this is basically just for search '''
def get_or_create_book(self, remote_id):
edition = activitypub.resolve_remote_id(models.Edition, remote_id)
edition = activitypub.resolve_remote_id(remote_id, model=models.Edition)
work = edition.parent_work
work.default_edition = work.get_default_edition()
work.save()