feat: update event ID in election blade files

The event ID for loading Nostr events in the election blade files for both admin and general user views have been updated to 32122.
This commit is contained in:
fsociety
2024-10-02 12:43:49 +02:00
parent c21a46a870
commit e937176d52
2 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ updated([
]);
$loadEvents = function () {
$this->events = $this->loadNostrEvents([32121]);
$this->events = $this->loadNostrEvents([32122]);
};
$loadBoardEvents = function () {
@@ -119,7 +119,7 @@ $vote = function ($pubkey, $type, $board = false) {
return;
}
$note = new NostrEvent();
$note->setKind($board ? 2121 : 32121);
$note->setKind($board ? 2121 : 32122);
if (!$board) {
$dTag = sprintf('%s,%s,%s', $this->currentPleb->pubkey, date('Y'), $type);
$note->setTags([['d', $dTag]]);

View File

@@ -124,7 +124,7 @@ $loadBoardVotes = function () {
};
$loadEvents = function () {
$this->events = $this->loadNostrEvents([32121]);
$this->events = $this->loadNostrEvents([32122]);
};
$loadBoardEvents = function () {