Skip to content

Commit

Permalink
[INJIMOB-2522] fix backup restore duplicate key in vc screen (#1735)
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Paul <[email protected]>
  • Loading branch information
abhip2565 authored Dec 11, 2024
1 parent 2a05fec commit 8fe100e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,5 @@ export const FACE_SDK_MODEL_CHECKSUM =
'797b4d99794965749635352d55da38d4748c28c659ee1502338badee4614ed06';

export const EXPIRED_VC_ERROR_CODE = 'ERR_VC_EXPIRED';

export const BASE_36 = 36;
3 changes: 2 additions & 1 deletion shared/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
SETTINGS_STORE_KEY,
ENOENT,
API_CACHED_STORAGE_KEYS,
BASE_36
} from './constants';
import FileStorage, {
getFilePath,
Expand Down Expand Up @@ -346,7 +347,7 @@ class Storage {
await Promise.all(
allVCKeys.map(async key => {
const vc = allVCs[key];
const ts = Date.now();
const ts = Date.now() + Math.random().toString(BASE_36).substring(2,7)
const prevUnixTimeStamp = vc.vcMetadata.timestamp;

const isVerified = await Storage.verifyCredential(
Expand Down

0 comments on commit 8fe100e

Please sign in to comment.