aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/model.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/model.go b/db/model.go
index 4b814f9..01d9b9f 100644
--- a/db/model.go
+++ b/db/model.go
@@ -29,8 +29,8 @@ func (m EntryModel) All() []Entry {
return entries
}
-func (m EntryModel) Create(entry Entry) {
- m.DB.Create(&entry)
+func (m EntryModel) Create(entry *Entry) {
+ m.DB.Create(entry)
}
func (m EntryModel) Update(entry Entry) {