Skip to content

Commit

Permalink
feat: ensure that queryId is always set
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Jul 1, 2018
1 parent ae25521 commit 71d7b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -94,7 +94,7 @@ export {
};

// eslint-disable-next-line complexity
export const query: InternalQueryFunctionType<*> = async (connection, clientConfiguration, rawSql, values, queryId) => {
export const query: InternalQueryFunctionType<*> = async (connection, clientConfiguration, rawSql, values, queryId = ulid()) => {
let stackTrace;

if (SLONIK_LOG_STACK_TRACE) {
Expand Down

0 comments on commit 71d7b66

Please sign in to comment.