-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscratch.js
More file actions
35 lines (30 loc) · 893 Bytes
/
scratch.js
File metadata and controls
35 lines (30 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// const scratch = (body) => {
// // where javascript >= proficency && postgres >= proficency
// const query = `select * from functionality_table where ${body.map(
// (technology) => `${technology.language} >= ${technology.proficency}`
// )}`.replace(",", " AND ");
// console.log("query", query);
// };
// scratch([
// { language: "javascript", proficency: 10 },
// { language: "postgres", proficency: 6 },
// ]);
const scratch = (body, github_id) => {
const hmm = Object.values(body);
const subs = [...hmm, github_id];
console.log("subs", subs);
};
scratch(
{
bio: "qdqdqd",
crypto_wallet_address: "wodjwdowdowdk",
email_marketing_consent: "true",
has_completed_onboarding: "true",
phone_number: "2424",
stripe_client_id: "1234",
teacher: "true",
text_message_consent: "true",
username: "sqsqsqsioetbc",
},
"github_id"
);