docs: fixed sql to query in the last example (#5753)

there was no `sql` tag in the example, and `query` made the most sense.
This commit is contained in:
tejovanthWork 2020-03-27 18:34:52 +05:30 committed by GitHub
parent 50a0641592
commit 0aba8a2445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,6 @@ postRepository.save(post, { data: { request: request } });
// in logger you can access it this way:
logQuery(query: string, parameters?: any[], queryRunner?: QueryRunner) {
const requestUrl = queryRunner && queryRunner.data["request"] ? "(" + queryRunner.data["request"].url + ") " : "";
console.log(requestUrl + "executing query: " + sql);
console.log(requestUrl + "executing query: " + query);
}
```