Skip to content

Commit

Permalink
Release: 2.3.0
Browse files Browse the repository at this point in the history
- rename redeploy command
- fix users authetificaton w/o username
  • Loading branch information
mo4islona committed May 11, 2023
1 parent 94c62b4 commit 9ed1a5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@subsquid/cli",
"description": "squid cli tool",
"version": "2.2.2",
"version": "2.3.0",
"license": "GPL-3.0-or-later",
"repository": "[email protected]:subsquid/squid-cli.git",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion src/api/me.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export async function me(auth?: { apiUrl: string; credentials: string }): Promis
path: `/client/me`,
});

if (!body || !body.username) {
if (!body) {
throw new ApiError(401, { error: 'username is missing' });
}

Expand Down
8 changes: 4 additions & 4 deletions src/commands/redeploy.ts → src/commands/restart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { redeploySquid } from '../api';
import { DeployCommand } from '../deploy-command';
import { parseEnvs, parseNameAndVersion } from '../utils';

export default class Redeploy extends DeployCommand {
static aliases = ['squid:redeploy'];
export default class Restart extends DeployCommand {
static aliases = ['squid:redeploy', 'redeploy'];

static description = 'Restart a squid version';
static description = 'Restart a squid';
static args = [
{
name: 'nameAndVersion',
Expand Down Expand Up @@ -39,7 +39,7 @@ export default class Redeploy extends DeployCommand {
const {
flags,
args: { nameAndVersion, 'no-stream-logs': disableStreamLogs },
} = await this.parse(Redeploy);
} = await this.parse(Restart);
const { squidName, versionName } = parseNameAndVersion(nameAndVersion, this);

const envs = parseEnvs(flags.env, flags.envFile);
Expand Down

0 comments on commit 9ed1a5d

Please sign in to comment.