Skip to content

Commit

Permalink
refactor: replace message type constant with string literal (#721)
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Koci <[email protected]>
  • Loading branch information
jakubkoci authored Apr 27, 2022
1 parent 9f04375 commit 75fb99e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/modules/common/messages/AckMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { Equals, IsEnum } from 'class-validator'

import { AgentMessage } from '../../../agent/AgentMessage'

import { CommonMessageType } from './CommonMessageType'

/**
* Ack message status types
*/
Expand Down Expand Up @@ -42,7 +40,7 @@ export class AckMessage extends AgentMessage {

@Equals(AckMessage.type)
public readonly type: string = AckMessage.type
public static readonly type: string = CommonMessageType.Ack
public static readonly type: string = 'https://didcomm.org/notification/1.0/ack'

@IsEnum(AckStatus)
public status!: AckStatus
Expand Down

This file was deleted.

0 comments on commit 75fb99e

Please sign in to comment.