models2: Fixed issue caused by last commit removing packages that were still barely in use.
This commit is contained in:
+2
-2
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user