Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 8c609bd

Browse files
committed
[Bugfix] fix typo
1 parent 6188a3e commit 8c609bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/routes/candidate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default (app: Router) => {
3131
try {
3232
const { name } = req.body;
3333
const candidateServiceInstance = Container.get(CandidateService);
34-
const { candidate } = await candidateServiceInstance.Create(name);
34+
const { candidate } = await candidateServiceInstance.Create({ name });
3535
return res.json({ candidate }).status(200);
3636
} catch (e) {
3737
logger.error('🔥 error: %o', e);

0 commit comments

Comments
 (0)