fix: repair failed user check for email favorites

This commit is contained in:
eoao
2026-04-06 23:03:58 +08:00
parent 6ce918e074
commit a7b45d0242

View File

@@ -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(