Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: set memo resources error in mysql (#2761)
Wen Suna22ad9017456
diff --git a/store/db/mysql/resource.go b/store/db/mysql/resource.goindex d277cf469..302bf2501 100644--- a/store/db/mysql/resource.go+++ b/store/db/mysql/resource.go@@ -116,7 +116,7 @@ func (d *DB) UpdateResource(ctx context.Context, update *store.UpdateResource) (set, args := []string{}, []any{}if v := update.UpdatedTs; v != nil {- set, args = append(set, "`updated_ts` = ?"), append(args, *v)+ set, args = append(set, "`updated_ts` = FROM_UNIXTIME(?)"), append(args, *v)}if v := update.Filename; v != nil {set, args = append(set, "`filename` = ?"), append(args, *v)