bug fixed

This commit is contained in:
richard-loafle 2020-02-19 13:38:15 +09:00
parent cb121b3612
commit 715cc00de5
5 changed files with 14 additions and 14 deletions

View File

@ -29,16 +29,16 @@ export const decodeFileEventJson: EventJsonDecoder<FileEventJson> = (
return {
statusCode: json.StatusCode,
errorMessage: json.ErrorMessage,
roomSeq: json.RoomID,
roomSeq: Number(json.RoomID),
fileName: json.FileName,
fileExt: json.FileExt,
fileType: json.FileType,
thumbUrl: json.ThumbURL,
attachmentSeq: json.AttSEQ,
attachmentSize: json.AttSize,
attachmentSeq: Number(json.AttSEQ),
attachmentSize: Number(json.AttSize),
attachmentRegDate: json.AttRegDate,
imageWidth: json.ImageWidth,
imageHeight: json.ImageHeight,
imageWidth: Number(json.ImageWidth),
imageHeight: Number(json.ImageHeight),
companyCode: json.CompanyCode,
voiceTime: json.VoiceTime,
synappKey: json.SynappKey

View File

@ -19,8 +19,8 @@ export const decodeMassTextEventJson: EventJsonDecoder<MassTextEventJson> = (
return {
statusCode: json.StatusCode,
errorMessage: json.ErrorMessage,
roomSeq: json.RoomID,
massSeq: json.EventMassSeq,
roomSeq: Number(json.RoomID),
massSeq: Number(json.EventMassSeq),
regDate: json.RegDate,
content: json.Content
} as MassTextEventJson;

View File

@ -12,18 +12,18 @@ export interface MassTranslationEventJson {
translation?: string;
}
export const decodeMassTranslationEventJson: EventJsonDecoder<
MassTranslationEventJson
> = (message: string) => {
export const decodeMassTranslationEventJson: EventJsonDecoder<MassTranslationEventJson> = (
message: string
) => {
try {
const json = JsonAnalization.receiveAnalization(message);
return {
statusCode: json.StatusCode,
errorMessage: json.ErrorMessage,
translationSeq: json.EventTransSeq,
translationSeq: Number(json.EventTransSeq),
destLocale: json.DestLocale,
roomSeq: json.RoomID,
roomSeq: Number(json.RoomID),
regDate: json.RegDate,
original: json.Original,
translation: json.Translation

View File

@ -21,7 +21,7 @@ export const decodePlanEventJson: EventJsonDecoder<PlanEventJson> = (
try {
const json = JsonAnalization.receiveAnalization(message);
return {
planSeq: json.planSeq,
planSeq: Number(json.planSeq),
title: json.title,
contents: json.contents,
date: json.date,

View File

@ -19,7 +19,7 @@ export const decodeVideoConferenceEventJson: EventJsonDecoder<VideoConferenceEve
const json = JsonAnalization.receiveAnalization(message);
return {
conferenceSeq: json.confSeq,
conferenceSeq: Number(json.confSeq),
title: json.title,
contents: json.contents,
startDate: json.startDate,