mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 08:41:15 +10:00
feat: add yarn typecheck and fix all types
This commit is contained in:
@ -27,7 +27,7 @@ export default defineEventHandler(async (h3) => {
|
||||
take: parseInt(query.limit as string),
|
||||
skip: parseInt(query.skip as string),
|
||||
orderBy: orderBy,
|
||||
tags: tags?.map((e) => e.toString()),
|
||||
...(tags && { tags: tags.map((e) => e.toString()) }),
|
||||
search: query.search as string,
|
||||
};
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ export default defineEventHandler(async (h3) => {
|
||||
|
||||
tags: tags,
|
||||
|
||||
image: imageId,
|
||||
...(imageId && { image: imageId }),
|
||||
authorId: "system",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user