mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-13 22:42:38 -05:00
14 lines
536 B
TypeScript
14 lines
536 B
TypeScript
import { refreshSendouQInstance } from "~/features/sendouq/core/SendouQ.server";
|
|
import * as SQGroupRepository from "~/features/sendouq/SQGroupRepository.server";
|
|
import { logger } from "../utils/logger";
|
|
import { Routine } from "./routine.server";
|
|
|
|
export const SetOldGroupsAsInactiveRoutine = new Routine({
|
|
name: "SetOldGroupsAsInactive",
|
|
func: async () => {
|
|
const { numUpdatedRows } = await SQGroupRepository.setOldGroupsAsInactive();
|
|
await refreshSendouQInstance();
|
|
logger.info(`Set ${numUpdatedRows} as inactive`);
|
|
},
|
|
});
|