Fix possible duplicate author id

pull/1/head
yflory 5 years ago
parent 1e9b9913c5
commit 9f5f4a4d52

@ -623,7 +623,7 @@ define([
return n; return n;
}; };
var getAuthorId = function (Env) { var getAuthorId = function (Env) {
var existing = Object.keys(Env.authormarks.authors || {}); var existing = Object.keys(Env.authormarks.authors || {}).map(Number);
if (!Env.common.isLoggedIn()) { return authorUid(existing); } if (!Env.common.isLoggedIn()) { return authorUid(existing); }
var userData = Env.common.getMetadataMgr().getUserData(); var userData = Env.common.getMetadataMgr().getUserData();

Loading…
Cancel
Save