fixup: api: SubmissionCreate in request body
This commit is contained in:
parent
bb46697277
commit
712ff32552
@ -18,7 +18,6 @@ var (
|
|||||||
|
|
||||||
// POST /submissions
|
// POST /submissions
|
||||||
func (svc *Service) CreateSubmission(ctx context.Context, request api.OptSubmissionCreate) (*api.ID, error) {
|
func (svc *Service) CreateSubmission(ctx context.Context, request api.OptSubmissionCreate) (*api.ID, error) {
|
||||||
//I don't know how to read the http body
|
|
||||||
submission, err := svc.DB.Submissions().Create(ctx, model.Submission{
|
submission, err := svc.DB.Submissions().Create(ctx, model.Submission{
|
||||||
ID: 0,
|
ID: 0,
|
||||||
DisplayName: request.Value.DisplayName.Value,
|
DisplayName: request.Value.DisplayName.Value,
|
||||||
|
Loading…
Reference in New Issue
Block a user