Skip to content

Commit

Permalink
fix: fix prePage check
Browse files Browse the repository at this point in the history
  • Loading branch information
ruiming committed Mar 17, 2018
1 parent 6689f8d commit ff098a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/LogService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class LogService {
hostId
}));

if (body.prePageId && !prePage) {
if (body.prePageId !== undefined && !prePage) {
throw new BadRequestError('PrePageId is not found');
} else if (body.prePageId && prePage) {
// 更新 prePage 的访问结束时间
Expand Down

0 comments on commit ff098a2

Please sign in to comment.