mirror of https://github.com/pikami/cosmium.git
16 lines
408 B
Go
16 lines
408 B
Go
package repositories
|
|
|
|
var triggers = []Trigger{}
|
|
|
|
func GetAllTriggers(databaseId string, collectionId string) ([]Trigger, RepositoryStatus) {
|
|
filteredTriggers := make([]Trigger, 0)
|
|
|
|
for _, coll := range triggers {
|
|
if coll.internals.databaseId == databaseId && coll.internals.collectionId == collectionId {
|
|
filteredTriggers = append(filteredTriggers, coll)
|
|
}
|
|
}
|
|
|
|
return filteredTriggers, StatusOk
|
|
}
|