mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-26 01:34:38 +10:00
fix: drop update notifications
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user