generated from VLADIMIR/template
fix
This commit is contained in:
parent
129f0fdfbd
commit
96346bd63b
@ -38,7 +38,7 @@ func (s *fileService) Save(ctx context.Context, story *models.Story) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := os.WriteFile(s.filepath, data, 0x777); err != nil {
|
if err := os.WriteFile(s.filepath, data, 0644); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
log.Printf("save story to: %s", s.filepath)
|
log.Printf("save story to: %s", s.filepath)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user