Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/chartbrew/chartbrew
/ findById
Function
findById
server/controllers/AlertController.js:3–10 ·
view source on GitHub ↗
(id)
Source
from the content-addressed store, hash-verified
1
const
db = require(
"../models/models"
);
2
3
function
findById(id) {
4
return
db.Alert.findOne({
5
where: {
6
id,
7
},
8
include: [{ model: db.AlertIntegration }],
9
});
10
}
11
12
function
create(data) {
13
return
db.Alert.create(data)
Callers
2
create
Function · 0.70
update
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected