mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
refactor(nestjs): hook up auth endpoints
This commit is contained in:
@@ -49,6 +49,6 @@ export class TenancyContext {
|
||||
// Get the user from the request headers.
|
||||
const userId = this.cls.get('userId');
|
||||
|
||||
return this.systemUserModel.query().findOne({ id: userId });
|
||||
return this.systemUserModel.query().findById(userId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user