Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/eggjs/examples
/ del
Method
del
sequelize/app/service/user.js:34–40 ·
view source on GitHub ↗
(id)
Source
from the content-addressed store, hash-verified
32
}
33
34
async
del(id) {
35
const
user =
await
this.ctx.model.User.findByPk(id);
36
if
(!user) {
37
this.ctx.throw(404,
'user not found'
);
38
}
39
return
user.destroy();
40
}
41
}
42
43
module.exports = User;
Callers
1
destroy
Method · 0.45
Calls
1
destroy
Method · 0.45
Tested by
no test coverage detected