Halve the aubergines and sprinkle the cut surfaces with salt. Dab after 10 minutes, place on a baking sheet with the cut surface facing down and prick the skin with a fork. Bake at 180 degrees for 45 minutes until the eggplant is tender. Take out of the oven and roughly dice.
Finely dice the onion and garlic. Heat some oil in a large pan and sweat the onions and garlic until translucent. Mix and stir in the spices, except for the salt. Sweat for 1 minute. Then stir in the tomatoes. Let the sauce simmer for 5 to 10 minutes. Add the aubergine pieces and the peas and cook until the peas are cooked through. Finally, season with salt and, if desired, with other spices.