We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a77323a commit 8008219Copy full SHA for 8008219
lib/aqQueue.js
@@ -119,13 +119,11 @@ class AqQueue {
119
if (typeof options.payloadType == 'string') {
120
const cls = await conn._getDbObjectClassForName(options.payloadType);
121
this._payloadTypeClass = cls;
122
- this._payloadType = constants.DB_TYPE_OBJECT;
123
options.payloadType = cls;
124
} else {
125
errors.assertParamPropValue(nodbUtil.isObject(options.payloadType) &&
126
options.payloadType.prototype instanceof BaseDbObject, 2, "payloadType");
127
this._payloadTypeClass = options.payloadType;
128
- this._payloadTypeName = options.payloadType.prototype.name;
129
}
130
this._payloadType = constants.DB_TYPE_OBJECT;
131
this._payloadTypeName = this._payloadTypeClass.prototype.name;
0 commit comments