mirror of
https://github.com/Teamlinker/Teamlinker.git
synced 2025-06-03 03:00:17 +00:00
Update mapper.ts
This commit is contained in:
parent
a43a7e377a
commit
52afba41c1
@ -49,7 +49,7 @@ export abstract class Mapper<T extends BaseModel> {
|
|||||||
|
|
||||||
async delete(id):Promise<void> {
|
async delete(id):Promise<void> {
|
||||||
if(!id) {
|
if(!id) {
|
||||||
throw Err.Common.itemNotFound
|
throw Err.Common.itemNotFound
|
||||||
}
|
}
|
||||||
var mysql=getMysqlInstance();
|
var mysql=getMysqlInstance();
|
||||||
await mysql.execute(generateDeleteSql(this.model,{id}))
|
await mysql.execute(generateDeleteSql(this.model,{id}))
|
||||||
|
Loading…
Reference in New Issue
Block a user