mirror of
https://github.com/eoao/cloud-mail.git
synced 2026-05-06 13:41:43 +08:00
fix: repair failed user check for email favorites
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user