Merge pull request #760 from snake-eaterr/pass-null-to-empty-rules
pass null to empty rules
This commit is contained in:
commit
91c6929abf
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ export default class {
|
||||||
return this.DB.getRepository(DebitAccess).update({ app_user_id: appUserId, npub: authorizedPub }, { authorized })
|
return this.DB.getRepository(DebitAccess).update({ app_user_id: appUserId, npub: authorizedPub }, { authorized })
|
||||||
}
|
}
|
||||||
async UpdateDebitAccessRules(appUserId: string, authorizedPub: string, rules?: DebitAccessRules) {
|
async UpdateDebitAccessRules(appUserId: string, authorizedPub: string, rules?: DebitAccessRules) {
|
||||||
return this.DB.getRepository(DebitAccess).update({ app_user_id: appUserId, npub: authorizedPub }, { rules })
|
return this.DB.getRepository(DebitAccess).update({ app_user_id: appUserId, npub: authorizedPub }, { rules: rules || null })
|
||||||
}
|
}
|
||||||
|
|
||||||
async DenyDebitAccess(appUserId: string, pub: string) {
|
async DenyDebitAccess(appUserId: string, pub: string) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue