farewell: шаблоны по всем своим прощальным, выбор прошлых отзывов тумблером, формат [дата] - тема : сообщение
This commit is contained in:
@@ -6191,10 +6191,8 @@ app.post('/api/feedbacks/requeue-failed', requireAuth, requireAdmin, async (req,
|
||||
app.get('/api/farewells/templates', requireAuth, async (req, res) => {
|
||||
try {
|
||||
const items = await listFarewellTemplates(pool, {
|
||||
isAdmin: req.user.role === 'admin',
|
||||
userId: req.user.id,
|
||||
resident: req.query.resident,
|
||||
limit: 5,
|
||||
limit: 10,
|
||||
});
|
||||
res.json({ items });
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user