Update mapper.ts

This commit is contained in:
sx1989827 2022-01-03 16:05:53 +08:00
parent a43a7e377a
commit 52afba41c1

View File

@ -49,7 +49,7 @@ export abstract class Mapper<T extends BaseModel> {
async delete(id):Promise<void> {
if(!id) {
throw Err.Common.itemNotFound
throw Err.Common.itemNotFound
}
var mysql=getMysqlInstance();
await mysql.execute(generateDeleteSql(this.model,{id}))