mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-09-21 13:31:42 +00:00
feat(worker): detect + persist per-channel forwarding permission
This commit is contained in:
@@ -639,6 +639,13 @@ export async function setChannelForum(channelId: string, isForum: boolean) {
|
||||
});
|
||||
}
|
||||
|
||||
export async function setChannelAllowsForwarding(channelId: string, allowsForwarding: boolean) {
|
||||
return db.telegramChannel.update({
|
||||
where: { id: channelId },
|
||||
data: { allowsForwarding },
|
||||
});
|
||||
}
|
||||
|
||||
export async function getTopicProgress(mappingId: string) {
|
||||
return db.topicProgress.findMany({
|
||||
where: { accountChannelMapId: mappingId },
|
||||
|
||||
Reference in New Issue
Block a user