chore: project fix

This commit is contained in:
xiaojunnuo
2026-03-05 00:11:08 +08:00
parent 5ee3874b7e
commit dd9a7cf5d7
3 changed files with 11 additions and 11 deletions
@@ -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,
}