Error in embedding signature

I am in the process of generating a signature for a document, and I’ve run into an error while attempting to embed the signature. I used pgpkeygen to create a key, and upon submission, I encountered this error within the Docker environment.

The error, stating “it returned 4!”, is occurring due to the number of documents with embedded signatures. The issue lies in the attempt to retrieve a specific document ID after modifying it. Instead of obtaining a single document ID, the system is returning multiple results.

Detach and upload signature also have their separate issues.