Skip to content

Commit

Permalink
fix: ignore assert
Browse files Browse the repository at this point in the history
  • Loading branch information
yourtion committed Dec 17, 2020
1 parent 19b9498 commit ce9b618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ export class QueryBuilder<Q = DataRow, R = any> {
* 插入忽略已存在
*/
public ignore(): this {
assert.ok(this._data.type === "INSERT", `onDuplicateKeyUpdate() must be called after insert()`);
assert.ok(this._data.type === "INSERT", `ignore() must be called after insert()`);
this._data.insertIgnore = true;
return this;
}
Expand Down

0 comments on commit ce9b618

Please sign in to comment.