// GetDisallowedMediaWithIDs returns the disallowed media with the specified IDs
GetDisallowedMediaWithIDs returns the disallowed media with the specified IDs
// GetDisallowedMediaWithIDs returns the disallowed media with the specified IDs
func GetDisallowedMediaWithIDs(node sqalx.Node, ids []string) (map[string]*DisallowedMedia, error) {
	s := sdb.Select().
		Where(sq.Eq{"disallowed_media.id": ids})
	items, _, err := getDisallowedMediaWithSelect(node, s)
	if err != nil {
		return map[string]*DisallowedMedia{}, stacktrace.Propagate(err, "")
	}
	result := make(map[string]*DisallowedMedia, len(items))
	for i := range items {
		result[items[i].ID] = items[i]
	}
	return result, nil
}
func GetDisallowedMediaWithIDs ( node sqalx . Node , ids [ ] string ) ( map [ string ] * DisallowedMedia , error ) { s := sdb . Select ( ) . Where ( sq . Eq { " " : ids } ) items , _ , err := getDisallowedMediaWithSelect ( node , s ) if err != nil { return map [ string ] * DisallowedMedia { } , stacktrace . Propagate ( err , " " ) } result := make ( map [ string ] * DisallowedMedia , len ( items ) ) for i := range items { result [ items [ i ] . ID ] = items [ i ] } return result , nil }
GetDisallowedMediaWithIDs returns the disallowed media with the specified IDs
GetDisallowedMediaWithIDs returns the disallowed media with the specified IDs