Skip to content

Commit

Permalink
db: file update methods were pointing at wrong table
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Jun 28, 2020
1 parent d141e3d commit 6a82a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/db/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ func hash(algo string, pathS string) string {
func (v *File) SetSize(x int64) {
v.Size = x
n := strconv.FormatInt(x, 10)
FS.Build().Up(ctUser, "size", n).Wh("id", v.i()).Exe()
Up(v, FS, ctFile, "size", n)
}

func (v *File) SetModTime(x int64) {
v.ModTime = x
n := strconv.FormatInt(x, 10)
FS.Build().Up(ctUser, "mod_time", n).Wh("id", v.i()).Exe()
Up(v, FS, ctFile, "mod_time", n)
}

0 comments on commit 6a82a90

Please sign in to comment.