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