mirror of
https://github.com/certd/certd.git
synced 2026-04-25 05:07:25 +08:00
chore: project
This commit is contained in:
@@ -196,7 +196,7 @@ export class AccessService extends BaseService<AccessEntity> {
|
||||
if (ids.length === 0) {
|
||||
return [];
|
||||
}
|
||||
if (!userId) {
|
||||
if (userId==null) {
|
||||
return [];
|
||||
}
|
||||
return await this.repository.find({
|
||||
|
||||
@@ -89,7 +89,7 @@ export class AddonService extends BaseService<AddonEntity> {
|
||||
if (ids.length === 0) {
|
||||
return [];
|
||||
}
|
||||
if (!userId) {
|
||||
if (userId==null) {
|
||||
return [];
|
||||
}
|
||||
return await this.repository.find({
|
||||
@@ -145,7 +145,7 @@ export class AddonService extends BaseService<AddonEntity> {
|
||||
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