MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / ensureUser

Function ensureUser

deployments/desktop/static/app.js:487–493  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

485}
486
487function ensureUser() {
488 const userId = activeUser();
489 if (!userId) {
490 throw new Error("请先创建或选择一个用户画像。");
491 }
492 return userId;
493}
494
495function switchView(name) {
496 const targetView = $(name);

Callers 9

refreshProfileFunction · 0.85
loadLatestPushFunction · 0.85
runDailyFunction · 0.85
submitFunction · 0.85
readArxivDirectFunction · 0.85
readPdfDirectFunction · 0.85
updateMustReadFunction · 0.85
searchWikiFunction · 0.85
askWikiFunction · 0.85

Calls 1

activeUserFunction · 0.85

Tested by

no test coverage detected