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,
|
externalLinkTitle = linkTitle l,
|
||||||
externalLinkUrl = linkUrl l }) $ gonitoMetadataExternalLinks gonitoMetadata
|
externalLinkUrl = linkUrl l }) $ gonitoMetadataExternalLinks gonitoMetadata
|
||||||
|
|
||||||
_ <- runDB $ mapM insert $ map (\s -> Dependency {
|
_ <- runDB $ mapM insertUnique $ map (\s -> Dependency {
|
||||||
dependencySubRepoCommit = s,
|
dependencySubRepoCommit = s,
|
||||||
dependencySuperRepoCommit = (repoCurrentCommit repo) }) $ gonitoMetadataDependencies gonitoMetadata
|
dependencySuperRepoCommit = (repoCurrentCommit repo) }) $ gonitoMetadataDependencies gonitoMetadata
|
||||||
|
|
||||||
outs <- getOuts chan submissionId (gonitoMetadataGeneralParams gonitoMetadata)
|
outs <- getOuts chan submissionId (gonitoMetadataGeneralParams gonitoMetadata)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user