Skip to content

Commit 26ec809

Browse files
committed
fix(services): fix managed airflow service format and wafV2WebAcl format
1 parent 826dbd1 commit 26ec809

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/services/managedAirflow/format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default ({
3131
Error: {
3232
ErrorCode: errorCode,
3333
ErrorMessage: errorMessage
34-
},
34+
} = {},
3535
Status: lastUpdateStatus,
3636
} = {},
3737
LoggingConfiguration: {

src/services/wafV2WebAcl/utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@ export const mapTextTransformations = (transforms: TextTransformations = []) =>
2929
export const formatSearchString = (
3030
searchString: SearchString = ''
3131
): string => {
32+
console.log('we got the search string')
33+
console.log(typeof searchString)
3234
if (searchString instanceof Blob) {
3335
return 'blob'
3436
}
3537
if (searchString instanceof Uint8Array) {
36-
return Buffer.from(searchString).toString('base64')
38+
console.log('search string is a array')
39+
return Buffer.from(searchString).toString()
3740
}
3841
if (searchString instanceof Buffer) {
42+
console.log('search string is a buffer')
3943
return searchString.toString()
4044
}
4145

0 commit comments

Comments
 (0)