mirror of https://github.com/certd/certd
fix: base service bug
parent
458756e895
commit
0a946f55ca
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
|
||||
"useWorkspaces": true,
|
||||
"version": "0.0.0",
|
||||
"version": "1.0.0",
|
||||
"npmClient": "yarn"
|
||||
}
|
|
@ -23,9 +23,7 @@ export abstract class BaseService<T> {
|
|||
if (!id) {
|
||||
throw new ValidateException('id不能为空');
|
||||
}
|
||||
const info = await this.getRepository().findOne({
|
||||
where:{ id }
|
||||
});
|
||||
const info = await this.getRepository().findOneBy({ id } as any);
|
||||
if (info && infoIgnoreProperty) {
|
||||
for (const property of infoIgnoreProperty) {
|
||||
delete info[property];
|
||||
|
|
Loading…
Reference in New Issue