validate brief manifests before enqueue
This commit is contained in:
@@ -40,7 +40,9 @@ export function createBriefOutbox(directory) {
|
||||
}
|
||||
return {
|
||||
prepare(week,email,messages) {
|
||||
const id=hash(JSON.stringify([week,email])),manifest=JSON.stringify(messages);
|
||||
const manifest=JSON.stringify(messages);
|
||||
parseManifest(manifest);
|
||||
const id=hash(JSON.stringify([week,email]));
|
||||
return transaction(db=>{
|
||||
const row=db.prepare('SELECT manifest FROM brief_batches WHERE id=?').get(id);
|
||||
if(row) {
|
||||
|
||||
Reference in New Issue
Block a user