new profile
This commit is contained in:
parent
cbf6e9809e
commit
8abfe5ef13
1 changed files with 32 additions and 3 deletions
|
|
@ -1133,7 +1133,21 @@ const setBio = (bio, user) =>
|
||||||
resolve()
|
resolve()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).then(
|
||||||
|
() =>
|
||||||
|
new Promise((resolve, reject) => {
|
||||||
|
user
|
||||||
|
.get(Key.PROFILE)
|
||||||
|
.get(Key.BIO)
|
||||||
|
.put(bio, ack => {
|
||||||
|
if (ack.err) {
|
||||||
|
reject(new Error(ack.err))
|
||||||
|
} else {
|
||||||
|
resolve()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string[]} mnemonicPhrase
|
* @param {string[]} mnemonicPhrase
|
||||||
|
|
@ -1216,8 +1230,23 @@ const setLastSeenApp = () =>
|
||||||
res()
|
res()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).then(
|
||||||
const maxPostPerPage = 10
|
() =>
|
||||||
|
new Promise((res, rej) => {
|
||||||
|
require('../Mediator')
|
||||||
|
.getUser()
|
||||||
|
.get(Key.PROFILE)
|
||||||
|
.get(Key.LAST_SEEN_APP)
|
||||||
|
.put(Date.now(), ack => {
|
||||||
|
if (ack.err) {
|
||||||
|
rej(new Error(ack.err))
|
||||||
|
} else {
|
||||||
|
res()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} tags
|
* @param {string} tags
|
||||||
* @param {string} title
|
* @param {string} title
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue