refactor: allow&block clean-up

This commit is contained in:
Vlad Stan 2023-02-15 11:58:15 +02:00
parent 88d53bd73d
commit 2099a8b7bb
3 changed files with 11 additions and 63 deletions

View file

@ -126,11 +126,11 @@ async function relayDetails(path) {
this.relay.config.allowedPublicKeys =
this.relay.config.allowedPublicKeys.filter(p => p !== pubKey)
},
deleteBlockedPublicKey: function (pubKey) {
this.relay.config.blockedPublicKeys =
this.relay.config.blockedPublicKeys.filter(p => p !== pubKey)
},
addSkipAuthForEvent: function () {
value = +this.skipEventKind
if (this.relay.config.skipedAuthEvents.indexOf(value) != -1) {