import FcmLog from '@app/core/fcm/model/FcmLog';
import FcmLogRepository = require('@app/core/fcm/FcmLogRepository');

export function addFcmLog(to: string, author: string, message: string, cause: string, response: any): Promise<void> {
    let fcmLog: FcmLog = {
        date: new Date(),
        to: to,
        author: author,
        message: message,
        cause: cause,
        response: JSON.stringify(response)
    }
    return FcmLogRepository.insertFcmLog(fcmLog);
}

export function getRecentFcmLog(): Promise<FcmLog[]>{
  return FcmLogRepository.findRecentFcmLog();
}

import FcmLog from '@app/core/fcm/model/FcmLog';
import FcmLogRepository = require('@app/core/fcm/FcmLogRepository');

export function addFcmLog(to: string, author: string, message: string, cause: string, response: string): Promise<void> {
    let fcmLog: FcmLog = {
        date: new Date(),
        to: to,
        author: author,
        message: message,
        cause: cause,
        response: response
    }
    return FcmLogRepository.insertFcmLog(fcmLog);
}

export function getRecentFcmLog(): Promise<FcmLog[]>{
  return FcmLogRepository.findRecentFcmLog();
}

--- 
+++ 
@@ -1,14 +1,14 @@
 import FcmLog from '@app/core/fcm/model/FcmLog';
 import FcmLogRepository = require('@app/core/fcm/FcmLogRepository');
 
-export function addFcmLog(to: string, author: string, message: string, cause: string, response: string): Promise<void> {
+export function addFcmLog(to: string, author: string, message: string, cause: string, response: any): Promise<void> {
     let fcmLog: FcmLog = {
         date: new Date(),
         to: to,
         author: author,
         message: message,
         cause: cause,
-        response: response
+        response: JSON.stringify(response)
     }
     return FcmLogRepository.insertFcmLog(fcmLog);
 }
Fix response string validation error
