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: fix linter errors (#2381)

boojackbacc529391a6
diff --git a/api/v2/memo_service.go b/api/v2/memo_service.go
index 9924ae13b..6310d8afc 100644
--- a/api/v2/memo_service.go
+++ b/api/v2/memo_service.go
@@ -200,7 +200,11 @@ func parseListMemosFilter(expression string) (*ListMemosFilter, error) {
return nil, errors.Errorf("found issue %v", issues)
}
filter := &ListMemosFilter{}
- callExpr := ast.Expr().GetCallExpr()
+ expr, err := cel.AstToParsedExpr(ast)
+ if err != nil {
+ return nil, err
+ }
+ callExpr := expr.GetExpr().GetCallExpr()
findField(callExpr, filter)
return filter, nil
}
diff --git a/proto/store/activity.proto b/proto/store/activity.proto
index 1e4ab1775..5990f042c 100644
--- a/proto/store/activity.proto
+++ b/proto/store/activity.proto
@@ -3,9 +3,3 @@ syntax = "proto3";
package memos.store;
option go_package = "gen/store";
-
-message ActivityMemoCommentCreatePayload {
- int32 memo_id = 1;
- int32 user_id = 2;
- int32
-}