Move messages.ts to device-api

Messages are all related to Supervisor API

Signed-off-by: Christina Ying Wang <christina@balena.io>
This commit is contained in:
Christina Ying Wang 2022-09-26 19:25:34 -07:00
parent 71b2aea0fe
commit f77fcb9ac9
3 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import * as serviceManager from '../compose/service-manager';
import * as volumeManager from '../compose/volume-manager';
import { InternalInconsistencyError } from '../lib/errors';
import { lock } from '../lib/update-lock';
import { appNotFoundMessage } from '../lib/messages';
import { appNotFoundMessage } from './messages';
export async function doRestart(appId, force) {
await deviceState.initialized();

View File

@ -26,7 +26,7 @@ import {
appNotFoundMessage,
serviceNotFoundMessage,
v2ServiceEndpointInputErrorMessage,
} from '../lib/messages';
} from './messages';
import log from '../lib/supervisor-console';
import supervisorVersion = require('../lib/supervisor-version');
import { checkInt, checkTruthy } from '../lib/validation';