func countWebhooks(fs *firestore.Client) (int, error) {
	// Get refs to all the documents in the collection
	// FIXME: Use the WebhookCollection constant instead, but it's a cyclic dependency and I'm at T-1, so f it
	docrefs, err := fs.Collection("webhooks").DocumentRefs(context.Background()).GetAll()
	if err != nil {
		return 0, err
	}

	return len(docrefs), nil
}
// countWebhooks returns the number of registered webhooks.
countWebhooks returns the number of registered webhooks.
// countWebhooks returns the number of registered webhooks .
func countWebhooks(fs *firestore.Client) (int, error) {
	docrefs, err := fs.Collection("webhooks").DocumentRefs(context.Background()).GetAll()
	if err != nil {
		return 0, err
	}
	return len(docrefs), nil
}
func countWebhooks ( fs * firestore . Client ) ( int , error ) { docrefs , err := fs . Collection ( " " ) . DocumentRefs ( context . Background ( ) ) . GetAll ( ) if err != nil { return 0 , err } return len ( docrefs ) , nil }
countWebhooks returns the number of registered webhooks.
countWebhooks returns the number of registered webhooks .
// Get refs to all the documents in the collection // FIXME: Use the WebhookCollection constant instead, but it's a cyclic dependency and I'm at T-1, so f it