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
chore: fix resource int type
Steven465b173b368a
diff --git a/store/resource.go b/store/resource.goindex 91c2c314f..c2a660758 100644--- a/store/resource.go+++ b/store/resource.go@@ -156,12 +156,12 @@ func (s *Store) ListResources(ctx context.Context, find *FindResource) ([]*ResourelatedMemoIDList := strings.Split(relatedMemoIDs.String, ",")if len(relatedMemoIDList) > 0 {// Only take the first related memo ID.- relatedMemoIDInt, err := strconv.Atoi(relatedMemoIDList[0])+ relatedMemoIDInt, err := strconv.ParseInt(relatedMemoIDList[0], 10, 32)if err != nil {return nil, err}- relatedMemoIDInt32 := int32(relatedMemoIDInt)- resource.RelatedMemoID = &relatedMemoIDInt32+ relatedMemoID := int32(relatedMemoIDInt)+ resource.RelatedMemoID = &relatedMemoID}}list = append(list, &resource)