fix: 盲盒想法打标改为后台异步,新增 retag 补打接口
- applyTags 改为 fire-and-forget,用户投入想法立即返回(<200ms) - 打标超时设为 60s,失败静默,由 /api/blindbox/retag 兜底 - 新增 POST /api/blindbox/retag:补打房间内所有无标签想法
This commit is contained in:
@@ -42,7 +42,6 @@ describe("POST /api/blindbox (create idea)", () => {
|
||||
|
||||
expect(status).toBe(201);
|
||||
expect(data.id).toBe("idea-1");
|
||||
expect(data.tags).toBeDefined();
|
||||
});
|
||||
|
||||
it("returns 401 when no userId", async () => {
|
||||
|
||||
Reference in New Issue
Block a user