Skip to content

Commit

Permalink
Merge pull request #11 from lionick/fix_ingester
Browse files Browse the repository at this point in the history
fix problem with ingetster when trying to save a service provider
  • Loading branch information
lionick authored Oct 2, 2023
2 parents 1ad285f + 1a8be95 commit 0400399
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/ingester/loginsIngester.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ def getSpId(cls, identifier, spName, tenenvId, session):
spId = session.exec(
"""
INSERT INTO serviceprovidersmap (identifier, name, tenenv_id)
SELECT '{0}', '{1}', {2}
WHERE NOT EXISTS (
SELECT 1 FROM serviceprovidersmap
WHERE identifier = '{0}'
)
VALUES ('{0}', '{1}', {2})
RETURNING id;
""".format(identifier, spName, tenenvId)
).one()
Expand Down

0 comments on commit 0400399

Please sign in to comment.