This commit is contained in:
AdisakKanthawilang 2025-08-18 09:48:41 +07:00
parent 8992698651
commit ce2114131d
2 changed files with 161 additions and 68 deletions

View file

@ -553,6 +553,14 @@ export async function checkQueueInProgress(queueName: string) {
// return false;
}
export function chunkArray(array: any, size: number) {
const result = [];
for (let i = 0; i < array.length; i += size) {
result.push(array.slice(i, i + size));
}
return result;
}
export function commandTypePath(commandCode: string): string | null {
switch (commandCode) {
case "C-PM-01":