Commit 7fd39418 authored by nanahira's avatar nanahira

fix

parent 606fb821
Pipeline #7157 passed with stages
in 1 minute and 1 second
......@@ -40,10 +40,7 @@ export class CrudBase<
this.entityName = entityClass.name;
}
async create(
ent: T,
beforeCreate?: (repo: Repository<T>) => void,
): Promise<void> {
async create(ent: T, beforeCreate?: (repo: Repository<T>) => void) {
const savedEnt = await this.repo.manager.transaction(async (mdb) => {
const repo = mdb.getRepository(this.entityClass);
if (ent.id != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment