fix: ensure we only allow the current key to publish

This commit is contained in:
Alexis Tyler
2021-04-22 08:58:16 +09:30
parent c3e50b7263
commit c72c1fdf69

View File

@@ -34,7 +34,7 @@ export const keyFile = () => {
// Ensure this is a key file
// @todo Check if varState is updated here if so for an exact match
// we can check if the path is varState.data.regFile
if (!fullPath.endsWith('.key')) {
if (fullPath !== varState.data.regFile) {
return;
}