Skip to content

Commit c78fee9

Browse files
committed
update ret structure
1 parent 2ab0825 commit c78fee9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/app.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,11 @@ app.post(
9191
})
9292
.filter((result) => result.section !== 'unknown')
9393
.filter((result) => result.anchorText !== '');
94-
console.log(summaryWithSection);
95-
res.send(summaryWithSection);
94+
const ret = {
95+
results: summaryWithSection, // 为了符合 protobuf 的定义,一定要有一个 key
96+
};
97+
console.log(ret);
98+
res.send(ret);
9699
}),
97100
);
98101

0 commit comments

Comments
 (0)