Skip to content

Commit

Permalink
🌸
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jul 4, 2023
1 parent 57672f8 commit bdbdae0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: npm run test.aws-offline.spa

- name: Configura AWS credentials
run: npx serverless config credentials --provider aws --key ${{ secrets.AWS_KEY }} --secre ${{ secrets.AWS_SECRET }}
run: npx serverless config credentials --provider aws --key ${{ secrets.AWS_KEY }} --secret ${{ secrets.AWS_SECRET }}

- name: Deploy AWS lambda
run: npm run deploy.aws
Expand Down
5 changes: 0 additions & 5 deletions custom-src/routes/functions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { component$, useSignal, useTask$ } from "@builder.io/qwik";
import { server$ } from "@builder.io/qwik-city";
import { getItems } from "./functions";

const globalDB = { count: 0 };

export function delay(nu: number) {
return new Promise((resolve) => {
setTimeout(resolve, nu);
Expand Down Expand Up @@ -72,9 +70,6 @@ export default component$(() => {
);
});

const getstuff = server$((nu: number) => {
return globalDB.count + nu;
});

const computeOnTheServer = server$((nu: number) => {
return nu * 2;
Expand Down

0 comments on commit bdbdae0

Please sign in to comment.