mirror of
https://github.com/Luzifer/mondash.git
synced 2024-11-14 02:12:42 +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"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
|
||||
|
@ -31,7 +32,8 @@ func (s *S3Storage) Put(dashboardID string, data []byte) error {
|
|||
Bucket: aws.String(s.cfg.S3.Bucket),
|
||||
ContentType: aws.String("application/json"),
|
||||
Key: aws.String(dashboardID),
|
||||
// TODO: Private ACL
|
||||
Body: bytes.NewReader(data),
|
||||
ACL: aws.String("private"),
|
||||
})
|
||||
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue