Skip to content

Commit

Permalink
Merge pull request #1423 from memphisdev/fix-GetGithubContentFromConn…
Browse files Browse the repository at this point in the history
…ectedRepo

Fix get GitHub content from connected repo
  • Loading branch information
shay23b authored Nov 19, 2023
2 parents 9d9d09b + 685dc0c commit fb278c9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions server/memphis_handlers_functions_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,12 @@ func GetFunctionsDetails(functionsDetails map[string][]functionDetails) (map[str
}
memory := 128 * 1024 * 1024
if memoryInterface, ok := fucntionContentMap["memory"]; ok && memoryInterface != nil {
if memoryVal, ok := memoryInterface.(int); ok {
memory = memoryVal
}
memory = int(memoryInterface.(int64))
}

storage := 512 * 1024 * 1024
if storageInterface, ok := fucntionContentMap["storage"]; ok && storageInterface != nil {
if storageVal, ok := storageInterface.(int); ok {
storage = storageVal
}
storage = int(storageInterface.(int64))
}

functionDetails := models.FunctionResult{
Expand Down

0 comments on commit fb278c9

Please sign in to comment.