models2: Fixed issue caused by last commit removing packages that were still barely in use.

This commit is contained in:
2018-10-07 13:41:39 +02:00
parent 8c8a251080
commit 34ba5d5d3a
2 changed files with 35 additions and 2 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"time"
"git.aiterp.net/rpdata/api/internal/counter"
"git.aiterp.net/rpdata/api/model/channel"
"git.aiterp.net/rpdata/api/models"
"git.aiterp.net/rpdata/api/models/channels"
"github.com/globalsign/mgo/bson"
)
@@ -18,7 +18,7 @@ func Add(date time.Time, channelName, title, eventName, description string, open
return models.Log{}, errors.New("Failed to allocate short ID: " + err.Error())
}
_, err = channel.Ensure(channelName, open)
_, err = channels.Ensure(channelName, open)
if err != nil {
return models.Log{}, errors.New("Failed to ensure channel: " + err.Error())
}