mirror of
https://github.com/pikami/cosmium.git
synced 2024-11-25 23:17:36 +00:00
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
|
|
}
|