fix: unify after-response script property name for folders (#7460)

This commit is contained in:
Hexxa 2024-05-29 10:28:17 +08:00 committed by GitHub
parent 09d7ca96b2
commit 55440c77ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ resources:
environmentPropertyOrder: null
metaSortKey: -1715935256495
preRequestScript: ""
postRequestScript: ""
afterResponseScript: ""
authentication: {}
_type: request_group
- _id: fld_e45987966c224b63b68b09b34687209c
@ -51,7 +51,7 @@ resources:
environmentPropertyOrder: null
metaSortKey: -1715935030239
preRequestScript: ""
postRequestScript: ""
afterResponseScript: ""
authentication:
accessTokenUrl: "http://127.0.0.1:4010/oidc/token"
authorizationUrl: "http://127.0.0.1:4010/oidc/auth"

View File

@ -18,7 +18,7 @@ interface BaseRequestGroup {
environmentPropertyOrder: Record<string, any> | null;
metaSortKey: number;
preRequestScript: string;
postRequestScript: string;
afterResponseScript: string;
authentication?: RequestAuthentication | {};
headers?: RequestHeader[];
}
@ -37,7 +37,7 @@ export function init(): BaseRequestGroup {
environmentPropertyOrder: null,
metaSortKey: -1 * Date.now(),
preRequestScript: '',
postRequestScript: '',
afterResponseScript: '',
authentication: {},
headers: [],
};