add env var to enable and disable collecting all service envelopes
This commit is contained in:
@ -91,6 +91,7 @@ client.on("message", async (topic, message) => {
|
||||
}
|
||||
|
||||
// create service envelope in db
|
||||
if(process.env.MM_COLLECT_SERVICE_ENVELOPES === "true"){
|
||||
try {
|
||||
await prisma.serviceEnvelope.create({
|
||||
data: {
|
||||
@ -107,6 +108,7 @@ client.on("message", async (topic, message) => {
|
||||
envelope: envelope.packet,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// attempt to decrypt encrypted packets
|
||||
const isEncrypted = envelope.packet.encrypted?.length > 0;
|
||||
|
Reference in New Issue
Block a user