mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
12 lines
421 B
TypeScript
12 lines
421 B
TypeScript
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();
|
|
logger.info(`Set ${numUpdatedRows} as inactive`);
|
|
},
|
|
});
|