feat: update for ppd data files
This commit is contained in:
parent
00e2938ae3
commit
939354902a
|
|
@ -96,8 +96,11 @@ func (_i *ppidDataFilesService) Save(c *fiber.Ctx) (err error) {
|
|||
types := strings.Split(typesString[0], ",")
|
||||
positionsString := form.Value["positions"]
|
||||
positions := strings.Split(positionsString[0], ",")
|
||||
var urls []string
|
||||
urlsString := form.Value["urls"]
|
||||
urls := strings.Split(urlsString[0], ",")
|
||||
if urlsString != nil {
|
||||
urls = strings.Split(urlsString[0], ",")
|
||||
}
|
||||
files := form.File["files"]
|
||||
|
||||
fileCounter := 0
|
||||
|
|
@ -105,7 +108,7 @@ func (_i *ppidDataFilesService) Save(c *fiber.Ctx) (err error) {
|
|||
|
||||
_i.Log.Info().Str("timestamp", time.Now().
|
||||
Format(time.RFC3339)).Str("Service", "Save").
|
||||
Interface("form", types).Msg("")
|
||||
Interface("form", files).Msg("")
|
||||
|
||||
for index, fileType := range types {
|
||||
position := &positions[index]
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ body-limit = 104857600 # "100 * 1024 * 1024"
|
|||
|
||||
[db.postgres]
|
||||
dsn = "postgresql://humas_polri:P@ssw0rd.1@103.82.242.92:5432/humas_polri" # <driver>://<username>:<password>@<host>:<port>/<database>
|
||||
migrate = true
|
||||
migrate = false
|
||||
seed = false
|
||||
|
||||
[logger]
|
||||
|
|
|
|||
Loading…
Reference in New Issue