Skip to content

Commit

Permalink
chore: sync ap migrations (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilczaja committed Aug 8, 2024
1 parent d25c4ef commit 610683c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ private Set<ConnectorRef> queryConnectorRefs(
c.CONNECTOR_ID.as("connectorId"),
c.ENVIRONMENT.as("environmentId"),
o.NAME.as("organizationLegalName"),
o.MDS_ID.as("organizationId"),
o.ID.as("organizationId"),
c.ENDPOINT_URL.as("endpoint")
)
.from(c)
.leftJoin(o).on(c.MDS_ID.eq(o.MDS_ID))
.leftJoin(o).on(c.ORGANIZATION_ID.eq(o.ID))
.where(condition.apply(c, o), c.ENVIRONMENT.eq(crawlerConfig.getEnvironmentId()))
.fetchInto(ConnectorRef.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ public static void insertConnector(
Consumer<ConnectorRecord> applier
) {
var organization = dsl.newRecord(Tables.ORGANIZATION);
organization.setMdsId(connectorRef.getOrganizationId());
organization.setId(connectorRef.getOrganizationId());
organization.setName(connectorRef.getOrganizationLegalName());
organization.insert();

var connector = dsl.newRecord(Tables.CONNECTOR);
connector.setEnvironment(connectorRef.getEnvironmentId());
connector.setMdsId(connectorRef.getOrganizationId());
connector.setOrganizationId(connectorRef.getOrganizationId());
connector.setConnectorId(connectorRef.getConnectorId());
connector.setName(connectorRef.getConnectorId() + " Name");
connector.setEndpointUrl(connectorRef.getEndpoint());
Expand Down

0 comments on commit 610683c

Please sign in to comment.