Skip to content

Commit

Permalink
migratio: moissonneurpostgres
Browse files Browse the repository at this point in the history
  • Loading branch information
fufeck committed Oct 21, 2024
1 parent 8825d24 commit a062ae0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ function AlertPublishedBALMoissoneur({
const loadOrganization = async () => {
if (revision.context.extras.sourceId) {
const sourceId: string = revision.context.extras.sourceId;
const id: string[] = sourceId.split("-");
const dataset: Dataset = await DataGouvService.findDataset(id[1]);
const dataset: Dataset = await DataGouvService.findDataset(sourceId);

setOrganization(dataset.organization);
}
Expand Down

0 comments on commit a062ae0

Please sign in to comment.