@axiosleo/orm-mysql 0.8.0 → 0.8.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/operator.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiosleo/orm-mysql",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "MySQL ORM tool",
5
5
  "keywords": [
6
6
  "mysql",
package/src/operator.js CHANGED
@@ -140,7 +140,7 @@ class QueryOperator extends Query {
140
140
  class QueryHandler {
141
141
  constructor(conn, options = {}) {
142
142
  this.conn = conn;
143
- this.optinos = options;
143
+ this.options = options;
144
144
  }
145
145
 
146
146
  async query(opt) {
@@ -151,7 +151,7 @@ class QueryHandler {
151
151
  }
152
152
 
153
153
  table(table, alias = null) {
154
- return (new QueryOperator(this.conn, this.optinos)).table(table, alias);
154
+ return (new QueryOperator(this.conn, this.options)).table(table, alias);
155
155
  }
156
156
 
157
157
  async upsert(tableName, data, condition = {}) {