Move data/global/settings.json into the database. Improved some error plumbing along the way.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3775 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-01-18 02:50:46 +00:00
parent 0b5017b208
commit 1515525a1b
3 changed files with 37 additions and 13 deletions

View File

@ -60,6 +60,7 @@ function socket(request, response, client) {
blobId = await new Database(user).get('path:' + path);
if (!blobId) {
response.send(JSON.stringify({action: "error", error: message.path + ' not found'}), 0x1);
return;
}
}
response.send(JSON.stringify({action: "session", credentials: credentials}), 0x1);