Skip to content

Commit

Permalink
G3-226 add publication return model
Browse files Browse the repository at this point in the history
  • Loading branch information
francastell committed May 1, 2024
1 parent 97db411 commit a48b463
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/geneweaver/api/controller/publications.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from fastapi import APIRouter, Depends, HTTPException, Path, Security
from geneweaver.api import dependencies as deps
from geneweaver.api.schemas.apimodels import NewPubMedRecord
from geneweaver.api.schemas.apimodels import NewPubmedRecord
from geneweaver.api.schemas.auth import UserInternal
from geneweaver.api.services import publications as publication_service
from geneweaver.core.schema.publication import Publication
Expand Down Expand Up @@ -44,7 +44,7 @@ def add_publication(
],
user: UserInternal = Security(deps.full_user),
cursor: Optional[deps.Cursor] = Depends(deps.cursor),
) -> NewPubMedRecord:
) -> NewPubmedRecord:
"""Add pubmed publication endpoint."""
response = publication_service.add_pubmed_record(
cursor=cursor, user=user, pubmed_id=publication_id
Expand Down
2 changes: 1 addition & 1 deletion src/geneweaver/api/schemas/apimodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class GeneValueReturn(BaseModel):
data: List[GeneValueSchema]


class NewPubMedRecord(BaseModel):
class NewPubmedRecord(BaseModel):
"""Model returned for adding new pubmed info into DB."""

pub_id: int
Expand Down

0 comments on commit a48b463

Please sign in to comment.