MCPcopy
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

1const db = require("../models/models");
2
3function findById(id) {
4 return db.Alert.findOne({
5 where: {
6 id,
7 },
8 include: [{ model: db.AlertIntegration }],
9 });
10}
11
12function create(data) {
13 return db.Alert.create(data)

Callers 2

createFunction · 0.70
updateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected