forked from jason/cpolis
		
	Set pubDate to published time and date
This commit is contained in:
		@@ -23,8 +23,8 @@ func (db *DB) AddArticle(a *Article) (int64, error) {
 | 
			
		||||
    VALUES (?, ?, ?, ?, ?, ?)
 | 
			
		||||
    `
 | 
			
		||||
 | 
			
		||||
	result, err := db.Exec(query, a.Title, a.Description, a.Content, a.Published,
 | 
			
		||||
		a.Rejected, a.AuthorID)
 | 
			
		||||
	result, err := db.Exec(query, a.Title, a.Description, a.Content,
 | 
			
		||||
		a.Published, a.Rejected, a.AuthorID)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return 0, fmt.Errorf("error inserting article into DB: %v", err)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user