fix: repair failed user check for email favorites

This commit is contained in:
eoao
2026-04-06 23:03:58 +08:00
parent 980b62f6ac
commit e92a44b069

View File

@@ -15,7 +15,7 @@ const starService = {
if (!email) { if (!email) {
throw new BizError(t('starNotExistEmail')); throw new BizError(t('starNotExistEmail'));
} }
if (!email.userId === userId) { if (email.userId !== userId) {
throw new BizError(t('starNotExistEmail')); throw new BizError(t('starNotExistEmail'));
} }
const exist = await orm(c).select().from(star).where( const exist = await orm(c).select().from(star).where(