This commit is contained in:
parent
8992698651
commit
ce2114131d
2 changed files with 161 additions and 68 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue