mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-28 16:29:11 -05:00
fix(routes/api/recovery_codes): convert number into string
fixes type error, as usedStatus is expecting string[] and "indexOf" returns a number
This commit is contained in:
@@ -47,7 +47,7 @@ function getUsedRecoveryCodes() {
|
||||
|
||||
recoveryCodes.forEach((recoveryKey: string) => {
|
||||
if (dateRegex.test(recoveryKey)) usedStatus.push(recoveryKey);
|
||||
else usedStatus.push(recoveryCodes.indexOf(recoveryKey));
|
||||
else usedStatus.push(String(recoveryCodes.indexOf(recoveryKey)));
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user