Skip to content

Commit

Permalink
Move session commit
Browse files Browse the repository at this point in the history
  • Loading branch information
noah-paige committed Jan 25, 2024
1 parent 0a5a9e6 commit 9cee03a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ def create_dataset(cls, session, env: Environment, dataset: Dataset, data: dict)
organization = OrganizationRepository.get_organization_by_uri(
session, env.organizationUri
)

cls._set_dataset_aws_resources(dataset, data, env)
session.add(dataset)
session.commit()

cls._set_dataset_aws_resources(dataset, data, env)

activity = Activity(
action='dataset:create',
label='dataset:create',
Expand Down

0 comments on commit 9cee03a

Please sign in to comment.