瀏覽代碼

fix(syncing-server): error message

Karol Sójko 1 年之前
父節點
當前提交
d0fd6b98df
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/syncing-server/src/Mapping/Persistence/MessagePersistenceMapper.ts

+ 1 - 1
packages/syncing-server/src/Mapping/Persistence/MessagePersistenceMapper.ts

@@ -20,7 +20,7 @@ export class MessagePersistenceMapper implements MapperInterface<Message, TypeOR
 
 
     const timestampsOrError = Timestamps.create(projection.createdAtTimestamp, projection.updatedAtTimestamp)
     const timestampsOrError = Timestamps.create(projection.createdAtTimestamp, projection.updatedAtTimestamp)
     if (timestampsOrError.isFailed()) {
     if (timestampsOrError.isFailed()) {
-      throw new Error(`Failed to create notification from projection: ${timestampsOrError.getError()}`)
+      throw new Error(`Failed to create message from projection: ${timestampsOrError.getError()}`)
     }
     }
     const timestamps = timestampsOrError.getValue()
     const timestamps = timestampsOrError.getValue()