chore: update

This commit is contained in:
Steven 2023-10-13 00:13:13 +08:00
parent a0f8e6987c
commit ed1ff11e80
2 changed files with 13 additions and 2 deletions

View file

@ -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,

View file

@ -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
}