Fixed forgotten seaWrite call

This commit is contained in:
Mika 2018-02-05 10:42:49 +02:00 committed by GitHub
parent d8a8df7ae7
commit 2878d4b400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
sea.js
View File

@ -953,7 +953,7 @@
check['user'+soul+key] = 1;
if(user && (user = user._) && user.sea && pub === user.pub){
var id = Gun.text.random(3);
seaWrite(val, Gun.obj.to(user.sea, {pub: user.pub, epub: user.epub})).then(function(data){ var rel;
SEA.write(val, Gun.obj.to(user.sea, {pub: user.pub, epub: user.epub})).then(function(data){ var rel;
if(rel = Gun.val.rel.is(val)){
(at.sea.own[rel] = at.sea.own[rel] || {})[pub] = true;
}