mirror of
https://github.com/certd/certd.git
synced 2026-07-27 23:23:42 +08:00
chore: project
This commit is contained in:
@@ -88,7 +88,7 @@ export class NotificationService extends BaseService<NotificationEntity> {
|
||||
if (!id) {
|
||||
throw new ValidateException('id不能为空');
|
||||
}
|
||||
if (!userId) {
|
||||
if (userId==null) {
|
||||
throw new ValidateException('userId不能为空');
|
||||
}
|
||||
const res = await this.repository.findOne({
|
||||
@@ -135,7 +135,7 @@ export class NotificationService extends BaseService<NotificationEntity> {
|
||||
if (!id) {
|
||||
throw new ValidateException('id不能为空');
|
||||
}
|
||||
if (!userId) {
|
||||
if (userId==null) {
|
||||
throw new ValidateException('userId不能为空');
|
||||
}
|
||||
await this.repository.update(
|
||||
|
||||
Reference in New Issue
Block a user