Skip to content
Snippets Groups Projects
Commit b9e9c392 authored by Aleksander Aaboen's avatar Aleksander Aaboen
Browse files

fixed transfer bug

parent 4bb8d5a3
Branches
No related tags found
1 merge request!105Alex
......@@ -656,7 +656,7 @@ func getScaffoldingFromProject(input int, scaffold _struct.InputScaffolding) ([]
documentPath := tool.CreatePath(strings.Split(newPath[0].Path, "/")[5:])
for _, s := range scaffold {
iter := database.Client.Doc(documentPath).Collection(constants.P_StillasType).Where(constants.P_Type, "==", strings.ToTitle(s.Type)).Documents(database.Ctx)
iter := database.Client.Doc(documentPath).Collection(constants.P_StillasType).Where(constants.P_Type, "==", (s.Type)).Documents(database.Ctx)
for {
doc, err := iter.Next()
if err == iterator.Done {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment