Fix GUID bytes ordering

This commit is contained in:
2017-09-02 15:30:19 -07:00
parent 7c94e26055
commit a8081a280a
9 changed files with 454 additions and 122 deletions

View File

@ -17,8 +17,9 @@ connection.once("connected", tcpEndPoint => {
password: Math.random().toString()
}
const eventId = uuid.v4();
const event = client.createJsonEventData(
uuid.v4(),
eventId,
userCreatedEvent,
null,
"UserCreated"
@ -28,7 +29,7 @@ connection.once("connected", tcpEndPoint => {
const streamName = `user-${userId}`
console.log(`Connected to eventstore at ${tcpEndPoint.host}:${tcpEndPoint.port}`)
console.log(`Storing event. Look for it at http://localhost:2113/web/index.html#/streams/user-${userId}`)
console.log(`Storing event ${eventId}. Look for it at http://localhost:2113/web/index.html#/streams/user-${userId}`)
connection.appendToStream(streamName, client.expectedVersion.any, event)
.then(result => {