Skip to content

Commit c437057

Browse files
authored
Merge pull request #34 from burgerphilic18/pr-31
2 fixes to PR #31
2 parents 0cb9b80 + 68825da commit c437057

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

apps/server/src/routers/threads.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,12 @@ export async function threadRoutes(fastify: FastifyInstance) {
3636
}
3737

3838
const data = parsed.data;
39-
const userId = request.userId;
40-
if (!userId) {
41-
return reply
42-
.status(401)
43-
.send({ error: "Unauthorized", success: false });
44-
}
4539

4640
type NewThread = typeof threadsTable.$inferInsert;
4741
const toInsert: NewThread = {
4842
topicId: data.topicId,
4943
threadTitle: data.threadTitle,
50-
createdBy: userId,
44+
createdBy: userid,
5145
viewCount: 0,
5246
};
5347
try {

apps/web/src/styles/components/card.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121

2222
.neo-brutal-card-blue {
23-
background-color: #4281ff;
23+
background-color: var(--brutal-blue);
2424
}
2525

2626
.light .neo-brutal-card {

0 commit comments

Comments
 (0)