fix: drop update notifications

This commit is contained in:
Huskydog9988
2025-05-15 13:45:05 -04:00
parent 598a38e482
commit 69be3af09f
+2 -2
View File
@@ -95,12 +95,12 @@ export default defineTask<TaskReturn>({
// check if is newer version // check if is newer version
if (semver.gt(latestVer, currVer)) { if (semver.gt(latestVer, currVer)) {
console.log("[Task check:update]: Update available"); console.log("[Task check:update]: Update available");
notificationSystem.pushAllAdmins({ notificationSystem.systemPush({
nonce: `drop-update-available-${currVer}-to-${latestVer}`, nonce: `drop-update-available-${currVer}-to-${latestVer}`,
title: `Update available to v${latestVer}`, title: `Update available to v${latestVer}`,
description: `A new version of Drop is available v${latestVer}`, description: `A new version of Drop is available v${latestVer}`,
actions: [`View|${body.html_url}`], actions: [`View|${body.html_url}`],
requiredPerms: [""], acls: ["system:notifications:read"],
}); });
} else { } else {
console.log("[Task check:update]: no update available"); console.log("[Task check:update]: no update available");