mirror of
https://github.com/Luzifer/mondash.git
synced 2024-12-23 04:21:18 +00:00
Fix: Was not storing data
This commit is contained in:
parent
ae3e597e56
commit
1937b981f6
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
package storage // import "github.com/Luzifer/mondash/storage"
|
package storage // import "github.com/Luzifer/mondash/storage"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
@ -31,7 +32,8 @@ func (s *S3Storage) Put(dashboardID string, data []byte) error {
|
||||||
Bucket: aws.String(s.cfg.S3.Bucket),
|
Bucket: aws.String(s.cfg.S3.Bucket),
|
||||||
ContentType: aws.String("application/json"),
|
ContentType: aws.String("application/json"),
|
||||||
Key: aws.String(dashboardID),
|
Key: aws.String(dashboardID),
|
||||||
// TODO: Private ACL
|
Body: bytes.NewReader(data),
|
||||||
|
ACL: aws.String("private"),
|
||||||
})
|
})
|
||||||
|
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue