1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-18 00:31:00 -05:00

Compare commits

..

No commits in common. "120e0b09a098e2d47bb5afa384dcaa0b1603f5a8" and "138dd14d2760dd7c8970f7f11959992e05a4c32b" have entirely different histories.

4 changed files with 5 additions and 26 deletions

12
.pnp.cjs generated
View File

@ -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.7"],\ ["@types/node", "npm:20.10.6"],\
["@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,14 +644,6 @@ 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", [\
@ -1003,7 +995,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.7"],\ ["@types/node", "npm:20.10.6"],\
["@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"],\

View File

@ -52,7 +52,7 @@
}, },
"devDependencies": { "devDependencies": {
"@types/ms": "0.7.34", "@types/ms": "0.7.34",
"@types/node": "20.10.7", "@types/node": "20.10.6",
"@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",

View File

@ -56,10 +56,6 @@ 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) {

View File

@ -441,7 +441,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/node@npm:*": "@types/node@npm:*, @types/node@npm:20.10.6":
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,15 +450,6 @@ __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"
@ -757,7 +748,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.7" "@types/node": "npm:20.10.6"
"@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"