Skip to content

Commit

Permalink
N21-1456 review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arnegns committed Nov 10, 2023
1 parent 90b3f48 commit 0520c26
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ data:
}'

# Add Bettermarks' tools configuration as an external tool
# (stored in the 'external_tools' collection) that uses OAuth.
mongosh $DATABASE__URL --eval 'db.external_tools.replaceOne(
# (stored in the 'external-tools' collection) that uses OAuth.
mongosh $DATABASE__URL --eval 'db.external-tools.replaceOne(
{
"name": "bettermarks",
"config_type": "oauth2"
Expand Down Expand Up @@ -486,9 +486,9 @@ data:
echo "POSTed nextcloud to hydra."

# Add Nextcloud' tools configuration as an external tool
# (stored in the 'external_tools' collection) that uses OAuth.
echo "Inserting nextcloud to external_tools..."
mongosh $DATABASE__URL --eval 'db.external_tools.update(
# (stored in the 'external-tools' collection) that uses OAuth.
echo "Inserting nextcloud to external-tools..."
mongosh $DATABASE__URL --eval 'db.external-tools.update(
{
"name": "nextcloud",
"config_type": "oauth2"
Expand All @@ -512,7 +512,7 @@ data:
"upsert": true
}
);'
echo "Inserted nextcloud to external_tools."
echo "Inserted nextcloud to external-tools."

echo "Nextcloud config data init performed successfully."
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export enum AuthorizableReferenceType {
'Lesson' = 'lessons',
'Team' = 'teams',
'Submission' = 'submissions',
'SchoolExternalToolEntity' = 'school_external_tools',
'SchoolExternalToolEntity' = 'school-external-tools',
'BoardNode' = 'boardnodes',
'ContextExternalToolEntity' = 'context_external_tools',
'ContextExternalToolEntity' = 'context-external-tools',
}
2 changes: 1 addition & 1 deletion src/services/school/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const gradeLevelSchema = new Schema({
});

const schoolModel = mongoose.model('school', schoolSchema);
const userLoginMigrationModel = mongoose.model('userLoginMigration', userLoginMigrationSchema, 'user_login_migrations');
const userLoginMigrationModel = mongoose.model('userLoginMigration', userLoginMigrationSchema, 'user-login-migrations');
const schoolGroupModel = mongoose.model('schoolGroup', schoolGroupSchema);
const yearModel = mongoose.model('year', yearSchema);
const gradeLevelModel = mongoose.model('gradeLevel', gradeLevelSchema);
Expand Down

0 comments on commit 0520c26

Please sign in to comment.