Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/scripts/fix-new-thread-types.js
// @flow | // @flow | ||||
import bots from 'lib/facts/bots.js'; | import bots from 'lib/facts/bots.js'; | ||||
import { threadTypes, assertThreadType } from 'lib/types/thread-types.js'; | import { threadTypes, assertThreadType } from 'lib/types/thread-types-enum.js'; | ||||
import { main } from './utils.js'; | import { main } from './utils.js'; | ||||
import { dbQuery, SQL } from '../database/database.js'; | import { dbQuery, SQL } from '../database/database.js'; | ||||
import { createScriptViewer } from '../session/scripts.js'; | import { createScriptViewer } from '../session/scripts.js'; | ||||
import { updateThread } from '../updaters/thread-updaters.js'; | import { updateThread } from '../updaters/thread-updaters.js'; | ||||
const batchSize = 10; | const batchSize = 10; | ||||
const updateThreadOptions = { forceUpdateRoot: true }; | const updateThreadOptions = { forceUpdateRoot: true }; | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |