stacker.news/lib/user.js

13 lines
254 B
JavaScript

export const isMuted = async ({ models, muterId, mutedId }) => {
const mute = await models.mute.findUnique({
where: {
muterId_mutedId: {
muterId: Number(muterId),
mutedId: Number(mutedId)
}
}
})
return !!mute
}