Esempio n. 1
0
func (s *DatabaseStorage) ModerateFact(f *fact.Fact, enable bool) error {
	f.AwaitModeration = enable
	return s.dbGorm.Save(f).Error
}
Esempio n. 2
0
func (s *DatabaseStorage) CreateFact(f *fact.Fact) error {
	f.AwaitModeration = true
	return s.dbGorm.Create(f).Error
}