aboutsummaryrefslogtreecommitdiff
path: root/controller
diff options
context:
space:
mode:
Diffstat (limited to 'controller')
-rw-r--r--controller/controller.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/controller.go b/controller/controller.go
index 7cbee6a..7fc8748 100644
--- a/controller/controller.go
+++ b/controller/controller.go
@@ -38,7 +38,7 @@ func (e *Env) UpdateEntry(c *gin.Context) {
func (e *Env) CreateEntry(c *gin.Context) {
var entry db.Entry
c.ShouldBind(&entry)
- e.Entries.Create(entry)
+ e.Entries.Create(&entry)
e.Worker.SpawnWorker(entry.ID, entry.Link, entry.OutputFolder)
c.Redirect(http.StatusFound, "/")
}