Browse Source

Remove unused variable, update docblock

Timothy J. Warren 10 months ago
parent
commit
00c193a22a
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      lib/Driver.js

+ 4
- 5
lib/Driver.js View File

@@ -1,4 +1,3 @@
1
-const array = require('locutus/php/array');
2 1
 const Helpers = require('./Helpers');
3 2
 
4 3
 /**
@@ -164,10 +163,10 @@ const Driver = {
164 163
 	 * Creates a batch update sql statement
165 164
 	 *
166 165
 	 * @private
167
-	 * @param {String} table
168
-	 * @param {Array<Object>} data
169
-	 * @param {String} updateKey
170
-	 * @return {Array<String,Object,Number>} array
166
+	 * @param {String} table - The name of the table to update
167
+	 * @param {Array<Object>} data -  Array of objects containing the update data
168
+	 * @param {String} updateKey - the field name to update based on
169
+	 * @return {Array<String,Object,Number>} - array of parameters passed to run the query
171 170
 	 */
172 171
 	updateBatch (table, data, updateKey) {
173 172
 		let affectedRows = 0;