kopia lustrzana https://github.com/Stopka/fedicrawl
12 wiersze
250 B
TypeScript
12 wiersze
250 B
TypeScript
|
import { PrismaClient, Tag } from '@prisma/client'
|
||
|
|
||
|
export const fetchTags = async (prisma:PrismaClient, tagNames:string[]):Promise<Tag[]> => {
|
||
|
return await prisma.tag.findMany({
|
||
|
where: {
|
||
|
name: {
|
||
|
in: tagNames
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
}
|