[refactor] account uuid for db
This commit is contained in:
@@ -47,7 +47,8 @@ export class AccountStorage{
|
||||
}
|
||||
let da:Response
|
||||
while((!da) || da.status === 403){
|
||||
da = await fetch(hubURL + '/api/account/read/' + Buffer.from(key ,'utf-8').toString('hex') + '|' + v4(), {
|
||||
da = await fetch(hubURL + '/api/account/read/' + Buffer.from(key ,'utf-8').toString('hex') +
|
||||
(key.includes('database') ? ('|' + v4()) : ''), {
|
||||
method: "GET",
|
||||
headers: {
|
||||
'x-risu-key': key,
|
||||
|
||||
Reference in New Issue
Block a user