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.

chore: update

Stevened1ff11e80ab
diff --git a/api/v2/user_service.go b/api/v2/user_service.go
index ae1d94837..1e65af5b6 100644
--- a/api/v2/user_service.go
+++ b/api/v2/user_service.go
@@ -162,8 +162,8 @@ func (s *UserService) ListUserAccessTokens(ctx context.Context, request *apiv2pb
}
// Sort by issued time in descending order.
- slices.SortFunc(accessTokens, func(i, j *apiv2pb.UserAccessToken) bool {
- return i.IssuedAt.Seconds > j.IssuedAt.Seconds
+ slices.SortFunc(accessTokens, func(i, j *apiv2pb.UserAccessToken) int {
+ return int(i.IssuedAt.Seconds - j.IssuedAt.Seconds)
})
response := &apiv2pb.ListUserAccessTokensResponse{
AccessTokens: accessTokens,
diff --git a/proto/store/activity.proto b/proto/store/activity.proto
new file mode 100644
index 000000000..1e4ab1775
--- /dev/null
+++ b/proto/store/activity.proto
@@ -0,0 +1,11 @@
+syntax = "proto3";
+
+package memos.store;
+
+option go_package = "gen/store";
+
+message ActivityMemoCommentCreatePayload {
+ int32 memo_id = 1;
+ int32 user_id = 2;
+ int32
+}