forked from filipg/gonito
Fix bug with the same dependency being added twice
This commit is contained in:
parent
ccae7e284f
commit
21f9302d1f
@ -295,9 +295,9 @@ doCreateSubmission userId challengeId mDescription mTags repoSpec chan = do
|
||||
externalLinkTitle = linkTitle l,
|
||||
externalLinkUrl = linkUrl l }) $ gonitoMetadataExternalLinks gonitoMetadata
|
||||
|
||||
_ <- runDB $ mapM insert $ map (\s -> Dependency {
|
||||
dependencySubRepoCommit = s,
|
||||
dependencySuperRepoCommit = (repoCurrentCommit repo) }) $ gonitoMetadataDependencies gonitoMetadata
|
||||
_ <- runDB $ mapM insertUnique $ map (\s -> Dependency {
|
||||
dependencySubRepoCommit = s,
|
||||
dependencySuperRepoCommit = (repoCurrentCommit repo) }) $ gonitoMetadataDependencies gonitoMetadata
|
||||
|
||||
outs <- getOuts chan submissionId (gonitoMetadataGeneralParams gonitoMetadata)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user