Skip to content

armgit / memos

Public Imported from GitHub
0

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.

fix: model fields are unconsistent with the data queried from the database (#1179)

仝华帅d43b806c5ed0
diff --git a/store/activity.go b/store/activity.go
index caae9cb2a..badf1a960 100644
--- a/store/activity.go
+++ b/store/activity.go
@@ -79,7 +79,7 @@ func createActivity(ctx context.Context, tx *sql.Tx, create *api.ActivityCreate)
&activityRaw.Type,
&activityRaw.Level,
&activityRaw.Payload,
- &activityRaw.CreatedTs,
+ &activityRaw.CreatorID,
&activityRaw.CreatedTs,
); err != nil {
return nil, FormatError(err)