@stashfin/mysql2 1.4.1 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/models/Offer.d.ts +1 -0
- package/models/UserAuthToken.d.ts +1 -1
- package/models/WealthUser.d.ts +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -53,7 +53,7 @@ class MysqlConnector {
|
|
|
53
53
|
const sql = `INSERT INTO ${tableName} (${keys.join(', ')}) VALUES (${keys
|
|
54
54
|
.map(() => '?')
|
|
55
55
|
.join(', ')})`;
|
|
56
|
-
return this.executeResult(sql, values);
|
|
56
|
+
return await this.executeResult(sql, values);
|
|
57
57
|
}
|
|
58
58
|
async updateData(tableName,
|
|
59
59
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -64,7 +64,7 @@ class MysqlConnector {
|
|
|
64
64
|
.map((key) => `${key} = ?`)
|
|
65
65
|
.join(', ')} WHERE ${condition}`;
|
|
66
66
|
const finalValues = [...values, ...(conditionValues || [])];
|
|
67
|
-
return this.executeResult(sql, finalValues);
|
|
67
|
+
return await this.executeResult(sql, finalValues);
|
|
68
68
|
}
|
|
69
69
|
async close() {
|
|
70
70
|
await this.pool.end();
|
package/models/Offer.d.ts
CHANGED
package/models/WealthUser.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ export interface WealthUserTable {
|
|
|
4
4
|
user_external_id: string;
|
|
5
5
|
gateway_id: string;
|
|
6
6
|
grip_user_auth_token?: string;
|
|
7
|
+
grip_user_refresh_token?: string;
|
|
7
8
|
grip_user_auth_token_expiry?: number;
|
|
9
|
+
grip_user_refresh_token_expiry?: number;
|
|
8
10
|
grip_user_consent?: string;
|
|
9
11
|
created_at?: Date;
|
|
10
12
|
updated_at?: Date;
|