Commit 8bbf8990 authored by nanahira's avatar nanahira

fix

parent b1194462
Pipeline #10845 passed with stages
in 3 minutes and 5 seconds
......@@ -118,7 +118,7 @@ export class CrudBase<
return new ReturnMessageDto(201, 'success', result);
}
async create(ent: T, beforeCreate?: (repo: Repository<T>) => void) {
async create(ent: T, beforeCreate?: (repo: Repository<T>) => Promise<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