forked from filipg/gonito
Fix bug with the same dependency being added twice
This commit is contained in:
parent
ccae7e284f
commit
21f9302d1f
@ -295,7 +295,7 @@ 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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user