1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 16:30:58 -05:00

Compare commits

...

2 Commits

Author SHA1 Message Date
dependabot[bot]
120e0b09a0
Bump @types/node from 20.10.6 to 20.10.7 (#78)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.10.6 to 20.10.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 12:45:02 +11:00
AnxietyisReal
1eaab9475a Add modifyUser function to modify the user's messages 2024-01-08 11:37:20 +11:00
4 changed files with 26 additions and 5 deletions

12
.pnp.cjs generated
View File

@ -30,7 +30,7 @@ const RAW_RUNTIME_STATE =
["@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"],\
["@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/pg", "npm:8.10.9"],\
["@types/sequelize", "npm:4.28.19"],\
@ -644,6 +644,14 @@ const RAW_RUNTIME_STATE =
["undici-types", "npm:5.26.5"]\
],\
"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", [\
@ -995,7 +1003,7 @@ const RAW_RUNTIME_STATE =
["@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"],\
["@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/pg", "npm:8.10.9"],\
["@types/sequelize", "npm:4.28.19"],\

View File

@ -52,7 +52,7 @@
},
"devDependencies": {
"@types/ms": "0.7.34",
"@types/node": "20.10.6",
"@types/node": "20.10.7",
"@types/node-cron": "3.0.11",
"@types/pg": "8.10.9",
"@types/sequelize": "4.28.19",

View File

@ -56,6 +56,10 @@ export class UserLevelsSvc {
async deleteUser(userId:string) {
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) {
const data = await this.model.findByPk(userId);
if (data) {

View File

@ -441,7 +441,7 @@ __metadata:
languageName: node
linkType: hard
"@types/node@npm:*, @types/node@npm:20.10.6":
"@types/node@npm:*":
version: 20.10.6
resolution: "@types/node@npm:20.10.6"
dependencies:
@ -450,6 +450,15 @@ __metadata:
languageName: node
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":
version: 8.10.9
resolution: "@types/pg@npm:8.10.9"
@ -748,7 +757,7 @@ __metadata:
"@octokit/rest": "npm:20.0.2"
"@toast/tokenservice-client": "npm:1.0.6"
"@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/pg": "npm:8.10.9"
"@types/sequelize": "npm:4.28.19"