Skip to content

Commit a7b45d0

Browse files
author
eoao
committed
fix: repair failed user check for email favorites
1 parent 6ce918e commit a7b45d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mail-worker/src/service/star-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const starService = {
1515
if (!email) {
1616
throw new BizError(t('starNotExistEmail'));
1717
}
18-
if (!email.userId === userId) {
18+
if (email.userId !== userId) {
1919
throw new BizError(t('starNotExistEmail'));
2020
}
2121
const exist = await orm(c).select().from(star).where(

0 commit comments

Comments
 (0)