You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
constQUERY_GET_COPILOT_PAYMENT='SELECT limit 1 * FROM project_info WHERE project_info_type_id = 49 AND project_id = %d'
7
+
constQUERY_INSERT_COPILOT_PAYMENT=`
8
+
INSERT INTO project_info
9
+
(
10
+
project_id,
11
+
project_info_type_id,
12
+
value,
13
+
create_user,
14
+
create_date,
15
+
modify_user,
16
+
modify_date
17
+
)
18
+
VALUES
19
+
(?, 49, ?, ?, CURRENT, ?, CURRENT)`
20
+
constQUERY_UPDATE_COPILOT_PAYMENT='UPDATE project_info SET value = ?, modify_user = ?, modify_date = CURRENT WHERE project_info_type_id = 49 AND project_id = ?'
21
+
constQUERY_DELETE_COPILOT_PAYMENT='DELETE FROM project_info WHERE project_info_type_id = 49 AND project_id = ?'
22
+
23
+
/**
24
+
* Prepare Informix statement
25
+
* @param {Object} connection the Informix connection
26
+
* @param {String} sql the sql
27
+
* @return {Object} Informix statement
28
+
*/
29
+
asyncfunctionprepare(connection,sql){
30
+
// logger.debug(`Preparing SQL ${sql}`)
31
+
conststmt=awaitconnection.prepareAsync(sql)
32
+
returnPromise.promisifyAll(stmt)
33
+
}
34
+
35
+
/**
36
+
* Set the copilot payment
37
+
* @param {Number} challengeLegacyId the legacy challenge ID
38
+
* @param {Number} amount the $ amount of the copilot payment
39
+
* @param {String} createdBy the create user handle
40
+
* @param {String} updatedBy the update user handle
0 commit comments