Using master pg library
This commit is contained in:
parent
d9a95a997c
commit
e0854aa001
8 changed files with 43 additions and 76 deletions
|
@ -18,7 +18,7 @@ func (db *pgDB) AddNews(text string) error {
|
|||
}
|
||||
|
||||
func (db *pgDB) addRawNews(text string, date time.Time) error {
|
||||
return db.sql.Create(&New{
|
||||
return db.sql.Insert(&New{
|
||||
Text: text,
|
||||
Date: date,
|
||||
})
|
||||
|
|
Reference in a new issue