forked from shubhampal123/MemeProject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrough.txt
40 lines (29 loc) · 1.47 KB
/
rough.txt
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
36
37
38
39
40
TODO: Use error classes everywhere
curl http://localhost:5555/api/users/create --data '{"UserId":"Ramesh","Password":"xyzASD12@"}'
curl -d "UserId=Ran&Password=sdasdAASA123@@@" POST http://localhost:5555/api/create
curl -d "UserId=Ran&Password=sdasdAASA123@@@" POST http://localhost:5555/api/login
curl -d "UserId=OM7&Password=aA2233@Adfdsf4" POST http://localhost:5555/api/create
curl -d "UserId=OM&Password=aA2233@Adfdsf4" POST http://localhost:5555/api/create
insert into UserCategories (CategoryId,UserId) values('1','OM');
insert into UserCategories (CategoryId,UserId) values('2','OM');
insert into UserCategories (CategoryId,UserId) values('3','OM');
insert into UserMemes (MemeId,UserId,LastUpdatedAt) values('123','OM','2021-07-27 22:15:44') ;
function foo() {
if ("123" instanceof String) {
console.log("fff");
}
else {
console.log("2222");
}
}
foo();
typeof str === "string"
INSERT INTO UserCategories
(CategoryId, AccessCount, UserActivityCount, UserCategoryLikeness, UserId)
VALUES ('1',0,1, 100,'43f75d5470b258bba1ba1e7a0c1eb734289a50cc'),
('2',0,1,100,'43f75d5470b258bba1ba1e7a0c1eb734289a50cc'),
('4',0,1,100,'43f75d5470b258bba1ba1e7a0c1eb734289a50cc')
ON DUPLICATE KEY UPDATE UserCategoryLikeness=UserCategoryLikeness + 100,
UserActivityCount=UserActivityCount+1;
TODO: Create DBERROr and InputError class
TODO : Write error classes properly . Detect if DBError properly