fix: repair failed user check for email favorites

This commit is contained in:
aslost
2026-04-06 23:03:58 +08:00
parent 53193938e5
commit 24a4e93f09
+1 -1
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(