mirror of
https://github.com/certd/certd.git
synced 2026-05-15 12:37:30 +08:00
chore: project fix
This commit is contained in:
@@ -138,21 +138,21 @@ export class NotificationService extends BaseService<NotificationEntity> {
|
||||
if (userId==null) {
|
||||
throw new ValidateException('userId不能为空');
|
||||
}
|
||||
const query:any = {
|
||||
userId,
|
||||
}
|
||||
if (projectId){
|
||||
query.projectId = projectId
|
||||
}
|
||||
await this.repository.update(
|
||||
{
|
||||
userId,
|
||||
projectId,
|
||||
},
|
||||
query,
|
||||
{
|
||||
isDefault: false,
|
||||
}
|
||||
);
|
||||
query.id = id
|
||||
await this.repository.update(
|
||||
{
|
||||
id,
|
||||
userId,
|
||||
projectId,
|
||||
},
|
||||
query,
|
||||
{
|
||||
isDefault: true,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user