Spaces:
Sleeping
Sleeping
fix(tool): tool report shows name correctly on slack
Browse files
src/routes/tools/[toolId]/+page.server.ts
CHANGED
@@ -88,7 +88,7 @@ export const actions: Actions = {
|
|
88 |
|
89 |
const tool = await collections.tools.findOne<Pick<Tool, "displayName">>(
|
90 |
{ _id: new ObjectId(params.toolId) },
|
91 |
-
{ projection: {
|
92 |
);
|
93 |
|
94 |
const username = locals.user?.username;
|
|
|
88 |
|
89 |
const tool = await collections.tools.findOne<Pick<Tool, "displayName">>(
|
90 |
{ _id: new ObjectId(params.toolId) },
|
91 |
+
{ projection: { displayName: 1 } }
|
92 |
);
|
93 |
|
94 |
const username = locals.user?.username;
|