pass null to empty rules
This commit is contained in:
parent
1205ec403d
commit
f8a8cb5975
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 })
|
||||
}
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue