phase-8: complete + claude-fix documents.name + User type
This commit is contained in:
parent
7c6ab0c4d7
commit
5642b34061
@ -31,7 +31,7 @@ export default async function documentRoutes(fastify: FastifyInstance) {
|
|||||||
const results = await db
|
const results = await db
|
||||||
.select({
|
.select({
|
||||||
id: documents.id,
|
id: documents.id,
|
||||||
name: documents.name,
|
name: documents.filename,
|
||||||
contentType: documents.contentType,
|
contentType: documents.contentType,
|
||||||
size: documents.size,
|
size: documents.size,
|
||||||
createdAt: documents.createdAt
|
createdAt: documents.createdAt
|
||||||
@ -59,7 +59,7 @@ export default async function documentRoutes(fastify: FastifyInstance) {
|
|||||||
content: data.data,
|
content: data.data,
|
||||||
userId: user.id
|
userId: user.id
|
||||||
})
|
})
|
||||||
.returning({ id: documents.id, name: documents.name })
|
.returning({ id: documents.id, name: documents.filename })
|
||||||
|
|
||||||
return reply.code(201).send(doc)
|
return reply.code(201).send(doc)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import type { User } from "@emberclone/shared";
|
import type { UserSelect as User } from "@emberclone/shared";
|
||||||
|
|
||||||
class EmailService {
|
class EmailService {
|
||||||
private async send(to: string, subject: string, body: string) {
|
private async send(to: string, subject: string, body: string) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user