mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 20:30:58 -05:00
Compare commits
2 Commits
138dd14d27
...
120e0b09a0
Author | SHA1 | Date | |
---|---|---|---|
|
120e0b09a0 | ||
|
1eaab9475a |
12
.pnp.cjs
generated
12
.pnp.cjs
generated
@ -30,7 +30,7 @@ const RAW_RUNTIME_STATE =
|
|||||||
["@octokit/rest", "npm:20.0.2"],\
|
["@octokit/rest", "npm:20.0.2"],\
|
||||||
["@toast/tokenservice-client", "npm:1.0.6::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.6%2Ftokenservice-client-1.0.6.tgz"],\
|
["@toast/tokenservice-client", "npm:1.0.6::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.6%2Ftokenservice-client-1.0.6.tgz"],\
|
||||||
["@types/ms", "npm:0.7.34"],\
|
["@types/ms", "npm:0.7.34"],\
|
||||||
["@types/node", "npm:20.10.6"],\
|
["@types/node", "npm:20.10.7"],\
|
||||||
["@types/node-cron", "npm:3.0.11"],\
|
["@types/node-cron", "npm:3.0.11"],\
|
||||||
["@types/pg", "npm:8.10.9"],\
|
["@types/pg", "npm:8.10.9"],\
|
||||||
["@types/sequelize", "npm:4.28.19"],\
|
["@types/sequelize", "npm:4.28.19"],\
|
||||||
@ -644,6 +644,14 @@ const RAW_RUNTIME_STATE =
|
|||||||
["undici-types", "npm:5.26.5"]\
|
["undici-types", "npm:5.26.5"]\
|
||||||
],\
|
],\
|
||||||
"linkType": "HARD"\
|
"linkType": "HARD"\
|
||||||
|
}],\
|
||||||
|
["npm:20.10.7", {\
|
||||||
|
"packageLocation": "./.yarn/cache/@types-node-npm-20.10.7-2d1f5de3e9-4a1ba3fb7f.zip/node_modules/@types/node/",\
|
||||||
|
"packageDependencies": [\
|
||||||
|
["@types/node", "npm:20.10.7"],\
|
||||||
|
["undici-types", "npm:5.26.5"]\
|
||||||
|
],\
|
||||||
|
"linkType": "HARD"\
|
||||||
}]\
|
}]\
|
||||||
]],\
|
]],\
|
||||||
["@types/node-cron", [\
|
["@types/node-cron", [\
|
||||||
@ -995,7 +1003,7 @@ const RAW_RUNTIME_STATE =
|
|||||||
["@octokit/rest", "npm:20.0.2"],\
|
["@octokit/rest", "npm:20.0.2"],\
|
||||||
["@toast/tokenservice-client", "npm:1.0.6::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.6%2Ftokenservice-client-1.0.6.tgz"],\
|
["@toast/tokenservice-client", "npm:1.0.6::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.6%2Ftokenservice-client-1.0.6.tgz"],\
|
||||||
["@types/ms", "npm:0.7.34"],\
|
["@types/ms", "npm:0.7.34"],\
|
||||||
["@types/node", "npm:20.10.6"],\
|
["@types/node", "npm:20.10.7"],\
|
||||||
["@types/node-cron", "npm:3.0.11"],\
|
["@types/node-cron", "npm:3.0.11"],\
|
||||||
["@types/pg", "npm:8.10.9"],\
|
["@types/pg", "npm:8.10.9"],\
|
||||||
["@types/sequelize", "npm:4.28.19"],\
|
["@types/sequelize", "npm:4.28.19"],\
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/ms": "0.7.34",
|
"@types/ms": "0.7.34",
|
||||||
"@types/node": "20.10.6",
|
"@types/node": "20.10.7",
|
||||||
"@types/node-cron": "3.0.11",
|
"@types/node-cron": "3.0.11",
|
||||||
"@types/pg": "8.10.9",
|
"@types/pg": "8.10.9",
|
||||||
"@types/sequelize": "4.28.19",
|
"@types/sequelize": "4.28.19",
|
||||||
|
@ -56,6 +56,10 @@ export class UserLevelsSvc {
|
|||||||
async deleteUser(userId:string) {
|
async deleteUser(userId:string) {
|
||||||
return await this.model.destroy({where: {id: userId}});
|
return await this.model.destroy({where: {id: userId}});
|
||||||
}
|
}
|
||||||
|
async modifyUser(userId:string, updatedMessages:number) {
|
||||||
|
await this.model.update({messages: updatedMessages}, {where: {id: userId}});
|
||||||
|
return (await this.model.findByPk(userId)).dataValues;
|
||||||
|
}
|
||||||
async messageIncremental(userId:string) {
|
async messageIncremental(userId:string) {
|
||||||
const data = await this.model.findByPk(userId);
|
const data = await this.model.findByPk(userId);
|
||||||
if (data) {
|
if (data) {
|
||||||
|
13
yarn.lock
13
yarn.lock
@ -441,7 +441,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/node@npm:*, @types/node@npm:20.10.6":
|
"@types/node@npm:*":
|
||||||
version: 20.10.6
|
version: 20.10.6
|
||||||
resolution: "@types/node@npm:20.10.6"
|
resolution: "@types/node@npm:20.10.6"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -450,6 +450,15 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@types/node@npm:20.10.7":
|
||||||
|
version: 20.10.7
|
||||||
|
resolution: "@types/node@npm:20.10.7"
|
||||||
|
dependencies:
|
||||||
|
undici-types: "npm:~5.26.4"
|
||||||
|
checksum: 4a1ba3fb7fc0a262c6b2d5ec763cec7abf5b5d6b2d277798ddbf05227f5778f9a806987821fd4d3eacd6f37c946ac61a9c64fb79ae4b84daaec12354158835a3
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@types/pg@npm:8.10.9":
|
"@types/pg@npm:8.10.9":
|
||||||
version: 8.10.9
|
version: 8.10.9
|
||||||
resolution: "@types/pg@npm:8.10.9"
|
resolution: "@types/pg@npm:8.10.9"
|
||||||
@ -748,7 +757,7 @@ __metadata:
|
|||||||
"@octokit/rest": "npm:20.0.2"
|
"@octokit/rest": "npm:20.0.2"
|
||||||
"@toast/tokenservice-client": "npm:1.0.6"
|
"@toast/tokenservice-client": "npm:1.0.6"
|
||||||
"@types/ms": "npm:0.7.34"
|
"@types/ms": "npm:0.7.34"
|
||||||
"@types/node": "npm:20.10.6"
|
"@types/node": "npm:20.10.7"
|
||||||
"@types/node-cron": "npm:3.0.11"
|
"@types/node-cron": "npm:3.0.11"
|
||||||
"@types/pg": "npm:8.10.9"
|
"@types/pg": "npm:8.10.9"
|
||||||
"@types/sequelize": "npm:4.28.19"
|
"@types/sequelize": "npm:4.28.19"
|
||||||
|
Loading…
Reference in New Issue
Block a user