Closed lev-apeiros closed 2 months ago
@lev-apeiros /api/submissions doesn't return the same slug - it always initiates a new submission and returns new submitters with new slug keys.
Hi,
I found the problem. Because I was using Next.js fetch
, it returned a cached response and the same slug was returned over and over again.
Fixed by adding:
next: { revalidate: 0 }
Having said that, an ability to unarchive a submission would still be useful.
Hi, I have a weird situation: I created a submission using the
/api/submissions
endpoint. I then archived the submission. When I call/api/submissions
with the same submitters, it returns the same slug. However, when opening the link to sign the document, it says the document was deleted, and I have no way to unarchive the document or create a new submission.There are two potential fixes that can help:
Currently, neither is supported. Any help will be appreciated.