Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/scripts/set-last-read-messages.js
// @flow | // @flow | ||||
import { messageTypes } from 'lib/types/message-types-enum.js'; | import { messageTypes } from 'lib/types/message-types-enum.js'; | ||||
import { threadPermissions } from 'lib/types/thread-types.js'; | import { threadPermissions } from 'lib/types/thread-permission-types.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'; | ||||
async function main() { | async function main() { | ||||
try { | try { | ||||
await createLastMessageColumn(); | await createLastMessageColumn(); | ||||
await setLastReadMessage(); | await setLastReadMessage(); | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |