feat: yönetici için 'şimdi gönder' (POST /api/notify/run?zorla=1)

Bildirim turunu temel-alma adımını atlayarak çalıştırır; abonelik kriterine uyan
ihaleler hemen e-posta olarak gönderilir. Test ve talep üzerine özet için.
This commit is contained in:
2026-08-29 03:22:03 +03:00
parent f86339417a
commit c64889782f
2 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -617,7 +617,7 @@ const server = http.createServer(async (req, res) => {
const user = userFromAuthHeader(req.headers['authorization']);
if (!user?.isAdmin) return json(res, 403, { success: false, error: 'yönetici yetkisi gerekli' });
try {
const sonuc = await bildirimleriIsle(() => tendersPayload());
const sonuc = await bildirimleriIsle(() => tendersPayload(), { zorla: url.searchParams.get('zorla') === '1' });
return json(res, 200, { success: true, ...sonuc });
} catch (e) {
return json(res, 502, { success: false, error: e.message });