- addes @adonisjs/redis fo saving session into redis with redis.ts contract and config
Some checks failed
CI Pipeline / japa-tests (push) Failing after 52s
Some checks failed
CI Pipeline / japa-tests (push) Failing after 52s
- npm updated - added createHashValues and dlete inside File.ts - added dataset_count property inside Subject.ts - corrected rotes.ts with correct permissions
This commit is contained in:
parent
d8bdce1369
commit
b6fdfbff41
29 changed files with 496 additions and 201 deletions
|
|
@ -24,8 +24,9 @@ Inertia.share({
|
|||
},
|
||||
|
||||
// params: ({ params }) => params,
|
||||
authUser: ({ auth }: HttpContextContract) => {
|
||||
authUser: async ({ auth }: HttpContextContract) => {
|
||||
if (auth.user) {
|
||||
await auth.user.load('roles');
|
||||
return auth.user;
|
||||
// {
|
||||
// 'id': auth.user.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue