@forge/sql
0.1.0-next.1-experimental-470bc940.1.0
out/sql.jsout/sql.js+8−4
Index: package/out/sql.js
===================================================================
--- package/out/sql.js
+++ package/out/sql.js
@@ -29,12 +29,16 @@
async executeRaw(query) {
return await this.prepare(query).execute();
}
async _provision() {
- const response = await this.sendRequest('/api/v1/provision', {
- method: 'POST'
- });
- await (0, response_handler_1.getResponseBody)(response);
+ try {
+ await this.sendRequest('/api/v1/provision', {
+ method: 'POST'
+ });
+ }
+ catch (e) {
+ throw e;
+ }
}
}
exports.SqlClient = SqlClient;
exports.sql = new SqlClient();