Skip to content

Commit f53fa2a

Browse files
committed
fix addcaption function
1 parent 6f57bb9 commit f53fa2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ClassTranscribeServer/Controllers/CaptionsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public async Task<ActionResult<Caption>> AddCaption(Caption newCaption)
166166
};
167167
_context.Captions.Add(addedCaption);
168168
await _context.SaveChangesAsync();
169-
return newCaption;
169+
return addedCaption;
170170
}
171171

172172
// POST: api/Captions/UpVote

0 commit comments

Comments
 (0)