fix: fix error tip for user cannot add self as friend

pull/220/head
moonrailgun 11 months ago
parent c451a091c3
commit 592e4ab8bd

@ -57,7 +57,7 @@ class FriendService extends TcService {
}
if (from === to) {
throw new Errors.ValidationError(t('不能添加自己为好友'));
throw new Errors.MoleculerError(t('不能添加自己为好友'));
}
const exist = await this.adapter.findOne({

Loading…
Cancel
Save