fix: redundant updates
Some checks failed
Open PR on Staging / audit_and_check (pull_request) Failing after 32s

This commit is contained in:
eugene 2024-10-24 12:54:47 +03:00
parent 19b815e528
commit 2d0212fd6c
2 changed files with 1 additions and 7 deletions

View File

@ -224,7 +224,6 @@ export const VerifyPage = () => {
parsedSignatureEvents
) {
if (timestamps.every((t) => !!t.verification)) {
console.log('Timestamps are fully verified')
return
}
const upgradeT = async (timestamps: OpenTimestamp[]) => {
@ -276,7 +275,6 @@ export const VerifyPage = () => {
}
if (userTimestamps.every((t) => !!t.verification)) {
console.log('user timestamps are verified')
return
}
@ -294,9 +292,7 @@ export const VerifyPage = () => {
return timestamp
})
console.log('upgraded timestamps: ', upgradedTimestamps)
if (upgradedUserTimestamps.length === 0) {
if (upgradedTimestamps.length === 0) {
return
}
@ -325,7 +321,6 @@ export const VerifyPage = () => {
updatedMeta.modifiedAt = unixNow()
const updatedEvent = await updateUsersAppData(updatedMeta)
console.log('updated event: ', updatedEvent)
if (!updatedEvent) return
const userSet = new Set<`npub1${string}`>()

View File

@ -44,7 +44,6 @@ export const upgradeAndVerifyTimestamp = async (
export const upgrade = async (
t: OpenTimestamp
): Promise<OpenTimestampUpgradeVerifyResponse> => {
console.log('timestamp: ', t)
const detachedTimestamp =
window.OpenTimestamps.DetachedTimestampFile.deserialize(
hexStringToUint8Array(t.value)