@@ -22,7 +22,7 @@ module.exports = app => {
}
async requestLog() {
- if (!this.ctx.session) return;
+ if (!this.ctx.session || !this.ctx.session.sessionProject || !this.ctx.session.sessionUser) return;
await this.db.insert(this.tableName, {
id: this.ctx.logId,