答卷提交报这个错误

来源:1-1 -导学

zac707

2024-11-26

[Nest] 8692 - 2024/11/26 09:04:59 ERROR [ExceptionsHandler] this.answerModel.count is not a function
TypeError: this.answerModel.count is not a function
at AnswerService.count (D:\JDevelopment\leanreact\question-server-nestjs\src\answer\answer.service.ts:28:39)
at StatService.getQuestionStatListAndCount (D:\JDevelopment\leanreact\question-server-nestjs\src\stat\stat.service.ts:82:49)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at StatController.getQuestionStat (D:\JDevelopment\leanreact\question-server-nestjs\src\stat\stat.controller.ts:15:16)

写回答

4回答

zac707

提问者

2024-11-27

https://img1.sycdn.imooc.com/szimg/6746e165094f152112110824.jpg这个提示不是一个函数

0
0

zac707

提问者

2024-11-27

https://img1.sycdn.imooc.com/szimg/6746bb490986d98010540550.jpg返回undfined

0
0

zac707

提问者

2024-11-26

https://img1.sycdn.imooc.com/szimg/6745946c09777d4c10400704.jpg打印信息

0
4
双越
回复
zac707
可以,没问题。可能是它 API 改了
2024-11-27
共4条回复

双越

2024-11-26

打印一下 answerModel ,看看是什么?

0
0

React18+ Nest.js 全栈开发仿问卷星项目

React18+TS4+Antd5+Next.js13 ,B端+C 端,完整业务

383 学习 · 252 问题

查看课程