mirror of
https://github.com/sergeyyarkov/educt-server.git
synced 2026-10-12 02:39:09 +03:00
14 lines
661 B
JavaScript
14 lines
661 B
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const Event_1 = __importDefault(global[Symbol.for('ioc.use')]("Adonis/Core/Event"));
|
|
const Database_1 = __importDefault(global[Symbol.for('ioc.use')]("Adonis/Lucid/Database"));
|
|
const Application_1 = __importDefault(global[Symbol.for('ioc.use')]("Adonis/Core/Application"));
|
|
Event_1.default.on('db:query', query => {
|
|
if (Application_1.default.inDev) {
|
|
Database_1.default.prettyPrint(query);
|
|
}
|
|
});
|
|
//# sourceMappingURL=event.js.map
|