Skip to content
Snippets Groups Projects
Verified Commit b9e24d70 authored by Martin Weise's avatar Martin Weise
Browse files

Hotfix search database

parent e718bc0f
Branches
Tags
2 merge requests!277Dev,!275Dev
package at.tuwien.gateway.impl;
import at.tuwien.api.database.DatabaseDto;
import at.tuwien.api.database.ViewDto;
import at.tuwien.api.database.table.constraints.unique.UniqueDto;
import at.tuwien.entities.database.Database;
import at.tuwien.entities.database.View;
......@@ -67,6 +68,14 @@ public class SearchServiceGatewayImpl implements SearchServiceGateway {
// });
});
});
payload.getViews()
.stream()
.map(ViewDto::getColumns)
.flatMap(List::stream)
.forEach(columns -> {
columns.setIsPublic(database.getIsPublic());
columns.setDatabaseId(database.getId());
});
final HttpHeaders headers = new HttpHeaders();
headers.set("Accept", "application/json");
headers.set("Content-Type", "application/json");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment