fixes to apply cmd

master
Matthew 2022-03-01 13:45:25 -05:00
parent fc7d44096e
commit 3f7c5326cf
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 4 additions and 2 deletions

5
package-lock.json generated
View File

@ -1521,7 +1521,8 @@
}, },
"node_modules/cr-db": { "node_modules/cr-db": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "git+https://gitlab.libraryofcode.org/engineering/community-relations/database.git#afe03b8012d751de08f68a4bd62e040435b71230", "resolved": "git+https://gitlab.libraryofcode.org/engineering/community-relations/database.git#3113144340764907c0beb602710e5a74d3d7db9e",
"hasInstallScript": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@typegoose/typegoose": "^9.4.0", "@typegoose/typegoose": "^9.4.0",
@ -7836,7 +7837,7 @@
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
}, },
"cr-db": { "cr-db": {
"version": "git+https://gitlab.libraryofcode.org/engineering/community-relations/database.git#afe03b8012d751de08f68a4bd62e040435b71230", "version": "git+https://gitlab.libraryofcode.org/engineering/community-relations/database.git#3113144340764907c0beb602710e5a74d3d7db9e",
"from": "cr-db@git+https://gitlab.libraryofcode.org/engineering/community-relations/database.git", "from": "cr-db@git+https://gitlab.libraryofcode.org/engineering/community-relations/database.git",
"requires": { "requires": {
"@typegoose/typegoose": "^9.4.0", "@typegoose/typegoose": "^9.4.0",

View File

@ -81,6 +81,7 @@ export default class Apply extends Command {
url: 'https://eds.libraryofcode.org/cs/cwgss', url: 'https://eds.libraryofcode.org/cs/cwgss',
validation: async (member: Member) => { validation: async (member: Member) => {
if (!member.roles.includes('546457886440685578')) return false; if (!member.roles.includes('546457886440685578')) return false;
return true;
}, },
func: async (client: Client, ...data: any[]) => { func: async (client: Client, ...data: any[]) => {
const token = nanoid(); const token = nanoid();