Esempio n. 1
0
// Remove all deletes all tasks with a given buildId
func RemoveAllWithBuild(buildId string) error {
	return db.RemoveAll(
		Collection,
		bson.M{BuildIdKey: buildId})
}
Esempio n. 2
0
func RemoveAllTasks(query interface{}) error {
	return db.RemoveAll(
		TasksCollection,
		query,
	)
}