Skip to content

Commit

Permalink
Rename eTag to etag in BlobChangeFeedEventData
Browse files Browse the repository at this point in the history
  • Loading branch information
Lin Jian committed Jun 10, 2020
1 parent 3fbc3f2 commit c41c903
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface BlobChangeFeedEventData {
// (undocumented)
destinationUrl?: string;
// (undocumented)
eTag: string;
etag: string;
// (undocumented)
recursive?: string;
// (undocumented)
Expand Down
6 changes: 5 additions & 1 deletion sdk/storage/storage-blob-changefeed/src/Chunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ export class Chunk {
if (next.done) {
return undefined;
} else {
let eventRaw = next.value as BlobChangeFeedEvent;
let eventRaw = next.value as any;
if (eventRaw.eventTime) {
eventRaw.eventTime = new Date(eventRaw.eventTime);
}
if (eventRaw.eTag) {
eventRaw.etag = eventRaw.eTag;
delete eventRaw.eTag;
}
return eventRaw;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface BlobChangeFeedEventData {
api: string;
clientRequestId: string; // GUID
requestId: string; // GUID
eTag: string;
etag: string;
contentType: string;
contentLength: number;
blobType: BlobType;
Expand Down

0 comments on commit c41c903

Please sign in to comment.