Skip to content

Commit

Permalink
fix addcaption function
Browse files Browse the repository at this point in the history
  • Loading branch information
selena236 committed Nov 20, 2024
1 parent 6f57bb9 commit f53fa2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ClassTranscribeServer/Controllers/CaptionsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public async Task<ActionResult<Caption>> AddCaption(Caption newCaption)
};
_context.Captions.Add(addedCaption);
await _context.SaveChangesAsync();
return newCaption;
return addedCaption;
}

// POST: api/Captions/UpVote
Expand Down

0 comments on commit f53fa2a

Please sign in to comment.