create-lx2-app 0.11.5-beta.be15a1f → 0.11.5-beta.f8c5ccc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/index.js +25 -27
  2. package/package.json +5 -2
  3. package/template/base/_gitignore +1 -0
  4. package/template/packages/config/prisma.config.ts +14 -0
  5. package/template/packages/prisma/schema/base.prisma +1 -1
  6. package/template/packages/prisma/schema/with-authjs.prisma +1 -1
  7. package/template/packages/prisma/schema/with-better-auth.prisma +1 -1
  8. package/template/packages/src/app/page/with-authjs-prisma.tsx +2 -0
  9. package/template/packages/src/app/page/with-better-auth-prisma.tsx +2 -0
  10. package/template/packages/src/app/page/with-prisma.tsx +2 -0
  11. package/template/packages/src/server/auth/better-auth.ts +0 -1
  12. package/template/packages/src/server/auth/config/authjs-with-drizzle.ts +1 -1
  13. package/template/packages/src/server/auth/config/authjs-with-prisma.ts +1 -1
  14. package/template/packages/src/server/auth/config/authjs.ts +1 -1
  15. package/template/packages/src/server/db/{db-prisma.ts → prisma/with-mysql.ts} +5 -1
  16. package/template/packages/src/server/db/prisma/with-postgresql.ts +29 -0
  17. package/template/packages/src/server/db/prisma/with-sqlite-bun.ts +29 -0
  18. package/template/packages/src/server/db/prisma/with-sqlite.ts +29 -0
  19. package/template/packages/src/app/api/trpc/[trpc]/route.ts +0 -34
  20. package/template/packages/src/app/layout/with-trpc.tsx +0 -37
  21. package/template/packages/src/app/page/with-trpc.tsx +0 -115
  22. package/template/packages/src/components/greeting.tsx +0 -21
  23. package/template/packages/src/env/with-trpc-authjs-db.js +0 -55
  24. package/template/packages/src/env/with-trpc-authjs.js +0 -53
  25. package/template/packages/src/env/with-trpc-better-auth-db.js +0 -54
  26. package/template/packages/src/env/with-trpc-better-auth.js +0 -52
  27. package/template/packages/src/env/with-trpc-db.js +0 -46
  28. package/template/packages/src/env/with-trpc.js +0 -44
  29. package/template/packages/src/lib/api/client.tsx +0 -85
  30. package/template/packages/src/lib/api/query-client.ts +0 -22
  31. package/template/packages/src/lib/api/server.ts +0 -31
  32. package/template/packages/src/lib/utils.ts +0 -7
  33. package/template/packages/src/server/api/init/base.ts +0 -103
  34. package/template/packages/src/server/api/init/with-authjs-db.ts +0 -132
  35. package/template/packages/src/server/api/init/with-authjs.ts +0 -130
  36. package/template/packages/src/server/api/init/with-betterauth-db.ts +0 -134
  37. package/template/packages/src/server/api/init/with-betterauth.ts +0 -132
  38. package/template/packages/src/server/api/init/with-db.ts +0 -106
  39. package/template/packages/src/server/api/root.ts +0 -23
  40. package/template/packages/src/server/api/routers/post/base.ts +0 -46
  41. package/template/packages/src/server/api/routers/post/with-auth-drizzle.ts +0 -44
  42. package/template/packages/src/server/api/routers/post/with-auth.ts +0 -43
  43. package/template/packages/src/server/api/routers/post/with-drizzle.ts +0 -36
@@ -1,103 +0,0 @@
1
- /**
2
- * YOU PROBABLY DON'T NEED TO EDIT THIS FILE, UNLESS:
3
- * 1. You want to modify request context (see Part 1).
4
- * 2. You want to create a new middleware or type of procedure (see Part 3).
5
- *
6
- * TL;DR - This is where all the tRPC server stuff is created and plugged in.
7
- * The pieces you will need to use are documented accordingly near the end.
8
- */
9
- import { initTRPC } from "@trpc/server"
10
- import superjson from "superjson"
11
- import { z, ZodError } from "zod"
12
-
13
- /**
14
- * 1. CONTEXT
15
- *
16
- * This section defines the "contexts" that are available in the backend API.
17
- *
18
- * These allow you to access things when processing a request, like the database, the session, etc.
19
- *
20
- * This helper generates the "internals" for a tRPC context. The API handler and RSC clients each
21
- * wrap this and provides the required context.
22
- *
23
- * @see https://trpc.io/docs/server/context
24
- */
25
- export async function createTRPCContext(opts: { headers: Headers }) {
26
- return {
27
- ...opts,
28
- }
29
- }
30
-
31
- /**
32
- * 2. INITIALIZATION
33
- *
34
- * This is where the tRPC API is initialized, connecting the context and transformer. We also parse
35
- * ZodErrors so that you get typesafety on the frontend if your procedure fails due to validation
36
- * errors on the backend.
37
- */
38
- const t = initTRPC.context<typeof createTRPCContext>().create({
39
- transformer: superjson,
40
- errorFormatter({ shape, error }) {
41
- return {
42
- ...shape,
43
- data: {
44
- ...shape.data,
45
- zodError:
46
- error.cause instanceof ZodError ? z.treeifyError(error.cause) : null,
47
- },
48
- }
49
- },
50
- })
51
-
52
- /**
53
- * Create a server-side caller.
54
- *
55
- * @see https://trpc.io/docs/server/server-side-calls
56
- */
57
- export const createCallerFactory = t.createCallerFactory
58
-
59
- /**
60
- * 3. ROUTER & PROCEDURE (THE IMPORTANT BIT)
61
- *
62
- * These are the pieces you use to build your tRPC API. You should import these a lot in the
63
- * "/src/server/api/routers" directory.
64
- */
65
-
66
- /**
67
- * This is how you create new routers and sub-routers in your tRPC API.
68
- *
69
- * @see https://trpc.io/docs/router
70
- */
71
- export const createTRPCRouter = t.router
72
-
73
- /**
74
- * Middleware for timing procedure execution and adding an artificial delay in development.
75
- *
76
- * You can remove this if you don't like it, but it can help catch unwanted waterfalls by simulating
77
- * network latency that would occur in production but not in local development.
78
- */
79
- const timingMiddleware = t.middleware(async ({ next, path }) => {
80
- const start = Date.now()
81
-
82
- if (t._config.isDev) {
83
- // artificial delay in dev
84
- const waitMs = Math.floor(Math.random() * 400) + 100
85
- await new Promise((resolve) => setTimeout(resolve, waitMs))
86
- }
87
-
88
- const result = await next()
89
-
90
- const end = Date.now()
91
- console.log(`[TRPC] ${path} took ${end - start}ms to execute`)
92
-
93
- return result
94
- })
95
-
96
- /**
97
- * Public (unauthenticated) procedure
98
- *
99
- * This is the base piece you use to build new queries and mutations on your tRPC API. It does not
100
- * guarantee that a user querying is authorized, but you can still access user session data if they
101
- * are logged in.
102
- */
103
- export const publicProcedure = t.procedure.use(timingMiddleware)
@@ -1,132 +0,0 @@
1
- /**
2
- * YOU PROBABLY DON'T NEED TO EDIT THIS FILE, UNLESS:
3
- * 1. You want to modify request context (see Part 1).
4
- * 2. You want to create a new middleware or type of procedure (see Part 3).
5
- *
6
- * TL;DR - This is where all the tRPC server stuff is created and plugged in.
7
- * The pieces you will need to use are documented accordingly near the end.
8
- */
9
- import { initTRPC, TRPCError } from "@trpc/server"
10
- import superjson from "superjson"
11
- import { z, ZodError } from "zod"
12
-
13
- import { auth } from "@/server/auth"
14
- import { db } from "@/server/db"
15
-
16
- /**
17
- * 1. CONTEXT
18
- *
19
- * This section defines the "contexts" that are available in the backend API.
20
- *
21
- * These allow you to access things when processing a request, like the database, the session, etc.
22
- *
23
- * This helper generates the "internals" for a tRPC context. The API handler and RSC clients each
24
- * wrap this and provides the required context.
25
- *
26
- * @see https://trpc.io/docs/server/context
27
- */
28
- export async function createTRPCContext(opts: { headers: Headers }) {
29
- const session = await auth()
30
-
31
- return {
32
- db,
33
- session,
34
- ...opts,
35
- }
36
- }
37
-
38
- /**
39
- * 2. INITIALIZATION
40
- *
41
- * This is where the tRPC API is initialized, connecting the context and transformer. We also parse
42
- * ZodErrors so that you get typesafety on the frontend if your procedure fails due to validation
43
- * errors on the backend.
44
- */
45
- const t = initTRPC.context<typeof createTRPCContext>().create({
46
- transformer: superjson,
47
- errorFormatter({ shape, error }) {
48
- return {
49
- ...shape,
50
- data: {
51
- ...shape.data,
52
- zodError:
53
- error.cause instanceof ZodError ? z.treeifyError(error.cause) : null,
54
- },
55
- }
56
- },
57
- })
58
-
59
- /**
60
- * Create a server-side caller.
61
- *
62
- * @see https://trpc.io/docs/server/server-side-calls
63
- */
64
- export const createCallerFactory = t.createCallerFactory
65
-
66
- /**
67
- * 3. ROUTER & PROCEDURE (THE IMPORTANT BIT)
68
- *
69
- * These are the pieces you use to build your tRPC API. You should import these a lot in the
70
- * "/src/server/api/routers" directory.
71
- */
72
-
73
- /**
74
- * This is how you create new routers and sub-routers in your tRPC API.
75
- *
76
- * @see https://trpc.io/docs/router
77
- */
78
- export const createTRPCRouter = t.router
79
-
80
- /**
81
- * Middleware for timing procedure execution and adding an artificial delay in development.
82
- *
83
- * You can remove this if you don't like it, but it can help catch unwanted waterfalls by simulating
84
- * network latency that would occur in production but not in local development.
85
- */
86
- const timingMiddleware = t.middleware(async ({ next, path }) => {
87
- const start = Date.now()
88
-
89
- if (t._config.isDev) {
90
- // artificial delay in dev
91
- const waitMs = Math.floor(Math.random() * 400) + 100
92
- await new Promise((resolve) => setTimeout(resolve, waitMs))
93
- }
94
-
95
- const result = await next()
96
-
97
- const end = Date.now()
98
- console.log(`[TRPC] ${path} took ${end - start}ms to execute`)
99
-
100
- return result
101
- })
102
-
103
- /**
104
- * Public (unauthenticated) procedure
105
- *
106
- * This is the base piece you use to build new queries and mutations on your tRPC API. It does not
107
- * guarantee that a user querying is authorized, but you can still access user session data if they
108
- * are logged in.
109
- */
110
- export const publicProcedure = t.procedure.use(timingMiddleware)
111
-
112
- /**
113
- * Protected (authenticated) procedure
114
- *
115
- * If you want a query or mutation to ONLY be accessible to logged in users, use this. It verifies
116
- * the session is valid and guarantees `ctx.session.user` is not null.
117
- *
118
- * @see https://trpc.io/docs/procedures
119
- */
120
- export const protectedProcedure = t.procedure
121
- .use(timingMiddleware)
122
- .use(({ ctx, next }) => {
123
- if (!ctx.session?.user) {
124
- throw new TRPCError({ code: "UNAUTHORIZED" })
125
- }
126
- return next({
127
- ctx: {
128
- // infers the `session` as non-nullable
129
- session: { ...ctx.session, user: ctx.session.user },
130
- },
131
- })
132
- })
@@ -1,130 +0,0 @@
1
- /**
2
- * YOU PROBABLY DON'T NEED TO EDIT THIS FILE, UNLESS:
3
- * 1. You want to modify request context (see Part 1).
4
- * 2. You want to create a new middleware or type of procedure (see Part 3).
5
- *
6
- * TL;DR - This is where all the tRPC server stuff is created and plugged in.
7
- * The pieces you will need to use are documented accordingly near the end.
8
- */
9
- import { initTRPC, TRPCError } from "@trpc/server"
10
- import superjson from "superjson"
11
- import { z, ZodError } from "zod"
12
-
13
- import { auth } from "@/server/auth"
14
-
15
- /**
16
- * 1. CONTEXT
17
- *
18
- * This section defines the "contexts" that are available in the backend API.
19
- *
20
- * These allow you to access things when processing a request, like the database, the session, etc.
21
- *
22
- * This helper generates the "internals" for a tRPC context. The API handler and RSC clients each
23
- * wrap this and provides the required context.
24
- *
25
- * @see https://trpc.io/docs/server/context
26
- */
27
- export async function createTRPCContext(opts: { headers: Headers }) {
28
- const session = await auth()
29
-
30
- return {
31
- session,
32
- ...opts,
33
- }
34
- }
35
-
36
- /**
37
- * 2. INITIALIZATION
38
- *
39
- * This is where the tRPC API is initialized, connecting the context and transformer. We also parse
40
- * ZodErrors so that you get typesafety on the frontend if your procedure fails due to validation
41
- * errors on the backend.
42
- */
43
- const t = initTRPC.context<typeof createTRPCContext>().create({
44
- transformer: superjson,
45
- errorFormatter({ shape, error }) {
46
- return {
47
- ...shape,
48
- data: {
49
- ...shape.data,
50
- zodError:
51
- error.cause instanceof ZodError ? z.treeifyError(error.cause) : null,
52
- },
53
- }
54
- },
55
- })
56
-
57
- /**
58
- * Create a server-side caller.
59
- *
60
- * @see https://trpc.io/docs/server/server-side-calls
61
- */
62
- export const createCallerFactory = t.createCallerFactory
63
-
64
- /**
65
- * 3. ROUTER & PROCEDURE (THE IMPORTANT BIT)
66
- *
67
- * These are the pieces you use to build your tRPC API. You should import these a lot in the
68
- * "/src/server/api/routers" directory.
69
- */
70
-
71
- /**
72
- * This is how you create new routers and sub-routers in your tRPC API.
73
- *
74
- * @see https://trpc.io/docs/router
75
- */
76
- export const createTRPCRouter = t.router
77
-
78
- /**
79
- * Middleware for timing procedure execution and adding an artificial delay in development.
80
- *
81
- * You can remove this if you don't like it, but it can help catch unwanted waterfalls by simulating
82
- * network latency that would occur in production but not in local development.
83
- */
84
- const timingMiddleware = t.middleware(async ({ next, path }) => {
85
- const start = Date.now()
86
-
87
- if (t._config.isDev) {
88
- // artificial delay in dev
89
- const waitMs = Math.floor(Math.random() * 400) + 100
90
- await new Promise((resolve) => setTimeout(resolve, waitMs))
91
- }
92
-
93
- const result = await next()
94
-
95
- const end = Date.now()
96
- console.log(`[TRPC] ${path} took ${end - start}ms to execute`)
97
-
98
- return result
99
- })
100
-
101
- /**
102
- * Public (unauthenticated) procedure
103
- *
104
- * This is the base piece you use to build new queries and mutations on your tRPC API. It does not
105
- * guarantee that a user querying is authorized, but you can still access user session data if they
106
- * are logged in.
107
- */
108
- export const publicProcedure = t.procedure.use(timingMiddleware)
109
-
110
- /**
111
- * Protected (authenticated) procedure
112
- *
113
- * If you want a query or mutation to ONLY be accessible to logged in users, use this. It verifies
114
- * the session is valid and guarantees `ctx.session.user` is not null.
115
- *
116
- * @see https://trpc.io/docs/procedures
117
- */
118
- export const protectedProcedure = t.procedure
119
- .use(timingMiddleware)
120
- .use(({ ctx, next }) => {
121
- if (!ctx.session?.user) {
122
- throw new TRPCError({ code: "UNAUTHORIZED" })
123
- }
124
- return next({
125
- ctx: {
126
- // infers the `session` as non-nullable
127
- session: { ...ctx.session, user: ctx.session.user },
128
- },
129
- })
130
- })
@@ -1,134 +0,0 @@
1
- /**
2
- * YOU PROBABLY DON'T NEED TO EDIT THIS FILE, UNLESS:
3
- * 1. You want to modify request context (see Part 1).
4
- * 2. You want to create a new middleware or type of procedure (see Part 3).
5
- *
6
- * TL;DR - This is where all the tRPC server stuff is created and plugged in.
7
- * The pieces you will need to use are documented accordingly near the end.
8
- */
9
- import { initTRPC, TRPCError } from "@trpc/server"
10
- import superjson from "superjson"
11
- import { z, ZodError } from "zod"
12
-
13
- import { auth } from "@/server/auth"
14
- import { db } from "@/server/db"
15
-
16
- /**
17
- * 1. CONTEXT
18
- *
19
- * This section defines the "contexts" that are available in the backend API.
20
- *
21
- * These allow you to access things when processing a request, like the database, the session, etc.
22
- *
23
- * This helper generates the "internals" for a tRPC context. The API handler and RSC clients each
24
- * wrap this and provides the required context.
25
- *
26
- * @see https://trpc.io/docs/server/context
27
- */
28
- export async function createTRPCContext(opts: { headers: Headers }) {
29
- const session = await auth.api.getSession({
30
- headers: opts.headers,
31
- })
32
-
33
- return {
34
- db,
35
- session,
36
- ...opts,
37
- }
38
- }
39
-
40
- /**
41
- * 2. INITIALIZATION
42
- *
43
- * This is where the tRPC API is initialized, connecting the context and transformer. We also parse
44
- * ZodErrors so that you get typesafety on the frontend if your procedure fails due to validation
45
- * errors on the backend.
46
- */
47
- const t = initTRPC.context<typeof createTRPCContext>().create({
48
- transformer: superjson,
49
- errorFormatter({ shape, error }) {
50
- return {
51
- ...shape,
52
- data: {
53
- ...shape.data,
54
- zodError:
55
- error.cause instanceof ZodError ? z.treeifyError(error.cause) : null,
56
- },
57
- }
58
- },
59
- })
60
-
61
- /**
62
- * Create a server-side caller.
63
- *
64
- * @see https://trpc.io/docs/server/server-side-calls
65
- */
66
- export const createCallerFactory = t.createCallerFactory
67
-
68
- /**
69
- * 3. ROUTER & PROCEDURE (THE IMPORTANT BIT)
70
- *
71
- * These are the pieces you use to build your tRPC API. You should import these a lot in the
72
- * "/src/server/api/routers" directory.
73
- */
74
-
75
- /**
76
- * This is how you create new routers and sub-routers in your tRPC API.
77
- *
78
- * @see https://trpc.io/docs/router
79
- */
80
- export const createTRPCRouter = t.router
81
-
82
- /**
83
- * Middleware for timing procedure execution and adding an artificial delay in development.
84
- *
85
- * You can remove this if you don't like it, but it can help catch unwanted waterfalls by simulating
86
- * network latency that would occur in production but not in local development.
87
- */
88
- const timingMiddleware = t.middleware(async ({ next, path }) => {
89
- const start = Date.now()
90
-
91
- if (t._config.isDev) {
92
- // artificial delay in dev
93
- const waitMs = Math.floor(Math.random() * 400) + 100
94
- await new Promise((resolve) => setTimeout(resolve, waitMs))
95
- }
96
-
97
- const result = await next()
98
-
99
- const end = Date.now()
100
- console.log(`[TRPC] ${path} took ${end - start}ms to execute`)
101
-
102
- return result
103
- })
104
-
105
- /**
106
- * Public (unauthenticated) procedure
107
- *
108
- * This is the base piece you use to build new queries and mutations on your tRPC API. It does not
109
- * guarantee that a user querying is authorized, but you can still access user session data if they
110
- * are logged in.
111
- */
112
- export const publicProcedure = t.procedure.use(timingMiddleware)
113
-
114
- /**
115
- * Protected (authenticated) procedure
116
- *
117
- * If you want a query or mutation to ONLY be accessible to logged in users, use this. It verifies
118
- * the session is valid and guarantees `ctx.session.user` is not null.
119
- *
120
- * @see https://trpc.io/docs/procedures
121
- */
122
- export const protectedProcedure = t.procedure
123
- .use(timingMiddleware)
124
- .use(({ ctx, next }) => {
125
- if (!ctx.session?.user) {
126
- throw new TRPCError({ code: "UNAUTHORIZED" })
127
- }
128
- return next({
129
- ctx: {
130
- // infers the `session` as non-nullable
131
- session: { ...ctx.session, user: ctx.session.user },
132
- },
133
- })
134
- })
@@ -1,132 +0,0 @@
1
- /**
2
- * YOU PROBABLY DON'T NEED TO EDIT THIS FILE, UNLESS:
3
- * 1. You want to modify request context (see Part 1).
4
- * 2. You want to create a new middleware or type of procedure (see Part 3).
5
- *
6
- * TL;DR - This is where all the tRPC server stuff is created and plugged in.
7
- * The pieces you will need to use are documented accordingly near the end.
8
- */
9
- import { initTRPC, TRPCError } from "@trpc/server"
10
- import superjson from "superjson"
11
- import { z, ZodError } from "zod"
12
-
13
- import { auth } from "@/server/auth"
14
-
15
- /**
16
- * 1. CONTEXT
17
- *
18
- * This section defines the "contexts" that are available in the backend API.
19
- *
20
- * These allow you to access things when processing a request, like the database, the session, etc.
21
- *
22
- * This helper generates the "internals" for a tRPC context. The API handler and RSC clients each
23
- * wrap this and provides the required context.
24
- *
25
- * @see https://trpc.io/docs/server/context
26
- */
27
- export async function createTRPCContext(opts: { headers: Headers }) {
28
- const session = await auth.api.getSession({
29
- headers: opts.headers,
30
- })
31
-
32
- return {
33
- session,
34
- ...opts,
35
- }
36
- }
37
-
38
- /**
39
- * 2. INITIALIZATION
40
- *
41
- * This is where the tRPC API is initialized, connecting the context and transformer. We also parse
42
- * ZodErrors so that you get typesafety on the frontend if your procedure fails due to validation
43
- * errors on the backend.
44
- */
45
- const t = initTRPC.context<typeof createTRPCContext>().create({
46
- transformer: superjson,
47
- errorFormatter({ shape, error }) {
48
- return {
49
- ...shape,
50
- data: {
51
- ...shape.data,
52
- zodError:
53
- error.cause instanceof ZodError ? z.treeifyError(error.cause) : null,
54
- },
55
- }
56
- },
57
- })
58
-
59
- /**
60
- * Create a server-side caller.
61
- *
62
- * @see https://trpc.io/docs/server/server-side-calls
63
- */
64
- export const createCallerFactory = t.createCallerFactory
65
-
66
- /**
67
- * 3. ROUTER & PROCEDURE (THE IMPORTANT BIT)
68
- *
69
- * These are the pieces you use to build your tRPC API. You should import these a lot in the
70
- * "/src/server/api/routers" directory.
71
- */
72
-
73
- /**
74
- * This is how you create new routers and sub-routers in your tRPC API.
75
- *
76
- * @see https://trpc.io/docs/router
77
- */
78
- export const createTRPCRouter = t.router
79
-
80
- /**
81
- * Middleware for timing procedure execution and adding an artificial delay in development.
82
- *
83
- * You can remove this if you don't like it, but it can help catch unwanted waterfalls by simulating
84
- * network latency that would occur in production but not in local development.
85
- */
86
- const timingMiddleware = t.middleware(async ({ next, path }) => {
87
- const start = Date.now()
88
-
89
- if (t._config.isDev) {
90
- // artificial delay in dev
91
- const waitMs = Math.floor(Math.random() * 400) + 100
92
- await new Promise((resolve) => setTimeout(resolve, waitMs))
93
- }
94
-
95
- const result = await next()
96
-
97
- const end = Date.now()
98
- console.log(`[TRPC] ${path} took ${end - start}ms to execute`)
99
-
100
- return result
101
- })
102
-
103
- /**
104
- * Public (unauthenticated) procedure
105
- *
106
- * This is the base piece you use to build new queries and mutations on your tRPC API. It does not
107
- * guarantee that a user querying is authorized, but you can still access user session data if they
108
- * are logged in.
109
- */
110
- export const publicProcedure = t.procedure.use(timingMiddleware)
111
-
112
- /**
113
- * Protected (authenticated) procedure
114
- *
115
- * If you want a query or mutation to ONLY be accessible to logged in users, use this. It verifies
116
- * the session is valid and guarantees `ctx.session.user` is not null.
117
- *
118
- * @see https://trpc.io/docs/procedures
119
- */
120
- export const protectedProcedure = t.procedure
121
- .use(timingMiddleware)
122
- .use(({ ctx, next }) => {
123
- if (!ctx.session?.user) {
124
- throw new TRPCError({ code: "UNAUTHORIZED" })
125
- }
126
- return next({
127
- ctx: {
128
- // infers the `session` as non-nullable
129
- session: { ...ctx.session, user: ctx.session.user },
130
- },
131
- })
132
- })