diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-15 00:03:19 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-15 00:03:19 +0200 |
commit | c1d786b6e1a9b8562e7ea05ae08934d92abff270 (patch) | |
tree | 9ef4378a0061f4155f24242dd85364779583d8b3 /api/src/routes/sticker-packs | |
parent | :bug: fix message sticker sending (diff) | |
download | server-c1d786b6e1a9b8562e7ea05ae08934d92abff270.tar.xz |
:bug: fix sticker packs
Diffstat (limited to 'api/src/routes/sticker-packs')
-rw-r--r-- | api/src/routes/sticker-packs/index.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/api/src/routes/sticker-packs/index.ts b/api/src/routes/sticker-packs/index.ts index 89b91bdb..e6560d12 100644 --- a/api/src/routes/sticker-packs/index.ts +++ b/api/src/routes/sticker-packs/index.ts @@ -1,11 +1,13 @@ import { Request, Response, Router } from "express"; import { route } from "@fosscord/api"; -import { StickerPack } from "@fosscord/util/src/entities/StickerPack"; +import { StickerPack } from "@fosscord/util"; const router: Router = Router(); router.get("/", route({}), async (req: Request, res: Response) => { - res.json(await StickerPack.find({})); + const sticker_packs = await StickerPack.find({ relations: ["stickers"] }); + + res.json({ sticker_packs }); }); export default router; |