From bacc529391a68ddcbe3a9fcee2a89b657b57d6c0 Mon Sep 17 00:00:00 2001 From: boojack Date: Fri, 13 Oct 2023 09:53:02 -0500 Subject: [PATCH] chore: fix linter errors (#2381) * chore: fix linter errors * chore: update * chore: update --- api/v2/memo_service.go | 6 +++++- proto/store/activity.proto | 6 ------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/api/v2/memo_service.go b/api/v2/memo_service.go index 9924ae13..6310d8af 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 1e4ab177..5990f042 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 -}