Skip to content

Commit

Permalink
fixes #141, rmdir updates feed with magicword
Browse files Browse the repository at this point in the history
  • Loading branch information
asabya committed Dec 13, 2021
1 parent 1a00036 commit 5767474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/dir/mkdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ func (d *Directory) MkDir(dirToCreateWithPath string) error {
}

// upload the metadata as blob
previousAddr, previousData, err := d.fd.GetFeedData(topic, d.userAddress)
if err == nil && previousAddr != nil && previousData != nil {
_, err = d.fd.UpdateFeed(topic, d.userAddress, previousData)
previousAddr, _, err := d.fd.GetFeedData(topic, d.userAddress)
if err == nil && previousAddr != nil {
_, err = d.fd.UpdateFeed(topic, d.userAddress, data)
if err != nil {
return err
}
Expand Down

0 comments on commit 5767474

Please sign in to comment.