Describe the bug
When running the API in dev mode, key export will fail. This is because the API expects to delete the keys from two krab keystore backends, and when in dev mode there is only 1 keystore backend. Therefore we need to have a check similar to the queue process where if in dev mode we only delete from the primary krab keystore and when in prod we delete from both.
This bug allows removal of the key from the keystore, but not the database.
To Reproduce
1) Run API in dev
2) Create key
3) Delete key (you will get an error)
Describe the bug When running the API in dev mode, key export will fail. This is because the API expects to delete the keys from two krab keystore backends, and when in dev mode there is only 1 keystore backend. Therefore we need to have a check similar to the queue process where if in dev mode we only delete from the primary krab keystore and when in prod we delete from both.
This bug allows removal of the key from the keystore, but not the database.
To Reproduce 1) Run API in dev 2) Create key 3) Delete key (you will get an error)
Expected behavior Delete key with no error