Fix app 404s.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4000 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-10-12 12:38:33 +00:00
parent 1dec53821e
commit 656ab7beb6

View File

@ -98,7 +98,12 @@ function socket(request, response, client) {
packageName = match[2]; packageName = match[2];
blobId = await new Database(packageOwner).get('path:' + packageName); blobId = await new Database(packageOwner).get('path:' + packageName);
if (!blobId) { if (!blobId) {
response.send(JSON.stringify({action: "error", error: message.path + ' not found'}), 0x1); response.send(JSON.stringify({
message: 'tfrpc',
method: "error",
params: [message.path + ' not found'],
id: -1,
}), 0x1);
return; return;
} }
if (packageOwner != 'core') { if (packageOwner != 'core') {