Skip to content

Commit

Permalink
fix(qseow): Delete master dimension works again
Browse files Browse the repository at this point in the history
Fixes #537
  • Loading branch information
mountaindude committed Nov 15, 2024
1 parent af26171 commit 610b969
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/lib/cli/qseow-delete-master-dimension.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Option } from 'commander';

import { catchLog } from '../util/log.js';
import { qseowSharedParamAssertOptions, masterItemDimDeleteAssertOptions } from '../util/qseow/assert-options.js';
import deleteMasterDimension from '../cmd/qseow/getdim.js';
import { deleteMasterDimension } from '../cmd/qseow/deletedim.js';

export function setupQseowDeleteMasterDimensionCommand(qseow) {
qseow
Expand Down
2 changes: 1 addition & 1 deletion src/lib/cli/qseow-get-master-dimension.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Option } from 'commander';

import { catchLog } from '../util/log.js';
import { qseowSharedParamAssertOptions } from '../util/qseow/assert-options.js';
import getMasterDimension from '../cmd/qseow/getdim.js';
import { getMasterDimension } from '../cmd/qseow/getdim.js';

export function setupQseowGetMasterDimensionCommand(qseow) {
qseow
Expand Down
6 changes: 2 additions & 4 deletions src/lib/cmd/qseow/deletedim.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let deleteCount = 0;
*
* @param {*} options
*/
const deleteMasterDimension = async (options) => {
export async function deleteMasterDimension(options) {
try {
// Set log level
setLoggingLevel(options.logLevel);
Expand Down Expand Up @@ -154,6 +154,4 @@ const deleteMasterDimension = async (options) => {
} catch (err) {
catchLog('Error in deleteMasterDimension', err);
}
};

export default deleteMasterDimension;
}
6 changes: 2 additions & 4 deletions src/lib/cmd/qseow/getdim.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const consoleTableConfig = {
*
* @param {*} options
*/
const getMasterDimension = async (options) => {
export async function getMasterDimension(options) {
try {
// Set log level
setLoggingLevel(options.logLevel);
Expand Down Expand Up @@ -267,6 +267,4 @@ const getMasterDimension = async (options) => {
} catch (err) {
catchLog(`Error getting master dimensions`, err);
}
};

export default getMasterDimension;
}

0 comments on commit 610b969

Please sign in to comment.