Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/scripts/add-leave-thread-permissions.js
// @flow | // @flow | ||||
import { threadPermissions, threadTypes } from 'lib/types/thread-types.js'; | import { threadPermissions } from 'lib/types/thread-permission-types.js'; | ||||
import { threadTypes } from 'lib/types/thread-types-enum.js'; | |||||
import { endScript } from './utils.js'; | import { endScript } from './utils.js'; | ||||
import { dbQuery, SQL } from '../database/database.js'; | import { dbQuery, SQL } from '../database/database.js'; | ||||
import { recalculateAllThreadPermissions } from '../updaters/thread-permission-updaters.js'; | import { recalculateAllThreadPermissions } from '../updaters/thread-permission-updaters.js'; | ||||
async function main() { | async function main() { | ||||
try { | try { | ||||
await addLeaveThreadPermissions(); | await addLeaveThreadPermissions(); | ||||
Show All 20 Lines |