diff --git a/mail-worker/src/service/star-service.js b/mail-worker/src/service/star-service.js index 748de49..0e87287 100644 --- a/mail-worker/src/service/star-service.js +++ b/mail-worker/src/service/star-service.js @@ -15,7 +15,7 @@ const starService = { if (!email) { throw new BizError(t('starNotExistEmail')); } - if (!email.userId === userId) { + if (email.userId !== userId) { throw new BizError(t('starNotExistEmail')); } const exist = await orm(c).select().from(star).where(