Skip to content
Snippets Groups Projects
Commit 70764cf4 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

update datapod kind names

parent a6b136c4
Branches
Tags
No related merge requests found
......@@ -4,10 +4,10 @@ import { CID } from 'multiformats'
// for the moment they are updated manually from datapod types
// document describing cesium plus profile
export const UPDATE_CESIUM_PLUS_PROFILE =
'bafkreigi5phtqpo6a2f3tx4obaja4fzevy3nyvnl4bnkcxylyqnfeowzbm'
export const DELETE_CESIUM_PLUS_PROFILE =
'bafkreic5bv5ytl7zv5rh5j2bd5mw6nfrn33mxhiobgmpsiu65yjw3eeduu'
export const CESIUM_PLUS_PROFILE_UPDATE = 'cplus_upsert'
export const CESIUM_PLUS_PROFILE_DELETE = 'cplus_delete'
export const DD_USER_FS = 'dd_user_fs'
export const TRANSACTION_COMMENT = 'dd_tx_comment'
export interface IndexRequest {
pubkey: string
......
......@@ -8,7 +8,7 @@ import DatapodMetadata from '@/components/DatapodMetadata.vue'
import { ipfsGateway, loginAccount } from '@/global'
import { CID } from 'multiformats'
import { dialpeers, type DatapodIpfsStack } from '@/ipfs'
import { DELETE_CESIUM_PLUS_PROFILE, UPDATE_CESIUM_PLUS_PROFILE, buildStringPayload } from '@/lib'
import { CESIUM_PLUS_PROFILE_DELETE, CESIUM_PLUS_PROFILE_UPDATE, buildStringPayload } from '@/lib'
import type { CplusProfile, IndexRequest, SignedIndexRequest, Social } from '@/lib'
import type { InjectedAccountWithMeta } from '@polkadot/extension-inject/types'
import { web3FromSource } from '@polkadot/extension-dapp'
......@@ -93,14 +93,14 @@ function insertProfile() {
if (p_city.value) data.city = p_city.value
if (p_geoloc.value) data.geoloc = p_geoloc.value
if (p_socials.value) data.socials = p_socials.value
uploadSignPublish(data, UPDATE_CESIUM_PLUS_PROFILE)
uploadSignPublish(data, CESIUM_PLUS_PROFILE_UPDATE)
}
// request delete profile data
function deleteProfile() {
const account = loginAccount.value!
const ir: IndexRequest = {
pubkey: account.address,
kind: DELETE_CESIUM_PLUS_PROFILE,
kind: CESIUM_PLUS_PROFILE_DELETE,
data: null,
time: Date.now()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment