Skip to content

Commit

Permalink
Sample
Browse files Browse the repository at this point in the history
  • Loading branch information
andresuribe87 committed Aug 7, 2024
1 parent bb09ebe commit e8ad4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/records-write.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class RecordsWriteHandler implements MethodHandler {
}

const messageReply = {
status: { code: 202, detail: 'Accepted' }
status: { code: newMessageIsInitialWrite ? 204 : 202, detail: newMessageIsInitialWrite ? 'No Content' : 'Accepted' }
};

// delete all existing messages of the same record that are not newest, except for the initial write
Expand Down

0 comments on commit e8ad4b1

Please sign in to comment.