|
@ -55,6 +55,10 @@ func (r *mutationResolver) EditChapter(ctx context.Context, input input.ChapterE |
|
|
return models.Chapter{}, errors.New("Unauthorized") |
|
|
return models.Chapter{}, errors.New("Unauthorized") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if input.ClearFictionalDate != nil && *input.ClearFictionalDate == true { |
|
|
|
|
|
input.FictionalDate = &time.Time{} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return chapters.Edit(chapter, input.Title, input.Source, input.FictionalDate) |
|
|
return chapters.Edit(chapter, input.Title, input.Source, input.FictionalDate) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|