diff --git a/server/router/api/v1/memo_service.go b/server/router/api/v1/memo_service.go index 48451dd7..5794a8dc 100644 --- a/server/router/api/v1/memo_service.go +++ b/server/router/api/v1/memo_service.go @@ -568,7 +568,7 @@ func (s *APIV1Service) ExportMemos(ctx context.Context, request *v1pb.ExportMemo if err != nil { return nil, errors.Wrap(err, "failed to convert memo") } - file, err := writer.Create(time.Unix(memo.CreatedTs, 0).Format(time.RFC3339) + ".md") + file, err := writer.Create(time.Unix(memo.CreatedTs, 0).Format(time.RFC3339) + "-" + string(memo.Visibility) + ".md") if err != nil { return nil, status.Errorf(codes.Internal, "Failed to create memo file") }