Skip to content

Commit 79a483d

Browse files
committed
fix(postgresql): wait for deleting success logical
1 parent 8a501ac commit 79a483d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
},
7272
"dependencies": {
7373
"@tencent-sdk/capi": "^0.2.17",
74-
"@ygkit/request": "^0.0.6",
74+
"@ygkit/request": "^0.1.1",
7575
"moment": "^2.25.3",
7676
"tencent-cloud-sdk": "^1.0.3"
7777
}

src/modules/postgresql/utils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ async function getDbInstanceDetail(capi, dBInstanceName) {
3232
} = res;
3333
return dbDetail;
3434
}
35-
return null;
3635
} catch (e) {
3736
console.log(e);
38-
return null;
3937
}
38+
return undefined;
4039
}
4140

4241
/**
@@ -138,7 +137,6 @@ async function deleteDbInstance(capi, dBInstanceName) {
138137
const detail = await waitResponse({
139138
callback: async () => getDbInstanceDetail(capi, dBInstanceName),
140139
targetResponse: undefined,
141-
targetProp: 'DBInstanceStatus',
142140
timeout: TIMEOUT,
143141
});
144142
console.log(`Removed postgres instance ${dBInstanceName}.`);

0 commit comments

Comments
 (0)