Skip to content

Commit 3e00d28

Browse files
committed
docs(bruno): rename of the walletaddress url variable
1 parent c112a81 commit 3e00d28

File tree

4 files changed

+23
-14
lines changed

4 files changed

+23
-14
lines changed

bruno/collections/Rafiki/Rafiki Admin APIs/Create Wallet Address.bru

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ meta {
55
}
66

77
post {
8-
url: {{RafikiGraphqlHost}}/graphql
8+
address: {{RafikiGraphqlHost}}/graphql
99
body: graphql
1010
auth: none
1111
}
@@ -17,7 +17,7 @@ body:graphql {
1717
id
1818
createdAt
1919
publicName
20-
url
20+
address
2121
status
2222
asset {
2323
code

bruno/collections/Rafiki/Rafiki Admin APIs/Get Wallet Addresses Keys.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ body:graphql {
1818
node {
1919
id
2020
publicName
21-
url
21+
address
2222
walletAddressKeys {
2323
edges {
2424
cursor

bruno/collections/Rafiki/Rafiki Admin APIs/Get Wallet Addresses.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ body:graphql {
1818
node {
1919
id
2020
publicName
21-
url
21+
address
2222
}
2323
}
2424
}

packages/backend/src/tenants/settings/model.ts

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import { Pojo } from 'objection'
22
import { BaseModel } from '../../shared/baseModel'
33
import { KeyValuePair } from './service'
44

5-
export const TenantSettingKeys = {
5+
interface TenantSettingKeyType {
6+
name: string
7+
default?: unknown
8+
}
9+
10+
export const TenantSettingKeys: { [key: string]: TenantSettingKeyType } = {
611
EXCHANGE_RATES_URL: { name: 'EXCHANGE_RATES_URL' },
712
WEBHOOK_URL: { name: 'WEBHOOK_URL' },
813
WEBHOOK_TIMEOUT: { name: 'WEBHOOK_TIMEOUT', default: 2000 },
@@ -30,15 +35,19 @@ export class TenantSetting extends BaseModel {
3035
}
3136

3237
static default(): KeyValuePair[] {
33-
return [
34-
{
35-
key: TenantSettingKeys.WEBHOOK_TIMEOUT.name,
36-
value: TenantSettingKeys.WEBHOOK_TIMEOUT.default.toString()
37-
},
38-
{
39-
key: TenantSettingKeys.WEBHOOK_MAX_RETRY.name,
40-
value: TenantSettingKeys.WEBHOOK_MAX_RETRY.default.toString()
38+
const settings = []
39+
for (const key of Object.keys(TenantSettingKeys)) {
40+
const data = TenantSettingKeys[key]
41+
if (!data.default) {
42+
continue
4143
}
42-
]
44+
45+
settings.push({
46+
key: data.name,
47+
value: String(data.default)
48+
})
49+
}
50+
51+
return settings
4352
}
4453
}

0 commit comments

Comments
 (0)