Close the bunker manually due to `using` not working

environments/review-update-vid-g70vyz/deployments/5013
Alex Gleason 2024-10-29 16:42:40 -05:00
rodzic 9faf9942a9
commit 46687a0a02
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -20,7 +20,7 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) {
let authorizedPubkey: string | undefined;
using bunker = new NBunker({
const bunker = new NBunker({
relay,
userSigner: signer,
bunkerSigner: authorization.signer,
@ -61,6 +61,9 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) {
});
await dispatch(verifyCredentials(accessToken));
// TODO: get rid of `vite-plugin-require` and switch to `using` for the bunker. :(
bunker.close();
};
}