diff --git a/backend-assemblyscript/step3-finished-app/assembly/model.ts b/backend-assemblyscript/step3-finished-app/assembly/model.ts index bb3a8c1..ec14ab3 100644 --- a/backend-assemblyscript/step3-finished-app/assembly/model.ts +++ b/backend-assemblyscript/step3-finished-app/assembly/model.ts @@ -12,7 +12,6 @@ export function addMessage(message: string, username: string): void { export function getMessages(username: string | null): string { if (username) { - let request = `SELECT json_group_array( json_object('message', message, 'username', username) diff --git a/backend-rust/step0-framework/run.sh b/backend-rust/step0-framework/run.sh index b058bad..c10a4de 100755 --- a/backend-rust/step0-framework/run.sh +++ b/backend-rust/step0-framework/run.sh @@ -21,11 +21,12 @@ echo sleep 1 && (docker logs -f frun 2>&1 &) | grep -q initialized && sleep 1 # Send our username to the application -echo -e "Sending request..." -echo "curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'$USER --compressed" +REQUEST="$USER" +echo -e "Sending request: $REQUEST" +echo "curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'"$REQUEST" --compressed" echo -RESPONSE=$(curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'"$USER" --compressed | jq -r .result.data | base64 -D) +RESPONSE=$(curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'"$REQUEST" --compressed | jq -r .result.data | base64 -D) echo -e "$RESPONSE\n"