Skip to content

Commit

Permalink
updated bulk import
Browse files Browse the repository at this point in the history
  • Loading branch information
f-w committed Dec 19, 2023
1 parent 9dd9690 commit f275266
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"letsencrypt",
"mailparser",
"materialdesignicons",
"mongoimport",
"mongorestore",
"mymaster",
"NDRs",
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/miscellaneous/bulk-import.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ permalink: /docs/bulk-import/

# Bulk Import

To facilitate migrating subscriptions from other notification systems, _NotifyBC_ provides a utility script to bulk import subscription data from a .csv file. To use the utility, you need
To migrate subscriptions from other notification systems, you can use [mongoimport](https://www.mongodb.com/docs/database-tools/mongoimport/). _NotifyBC_ also provides a utility script to bulk import subscription data from a .csv file. To use the utility, you need

- Software installed
- Node.js
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "notify-bc",
"version": "5.0.10",
"version": "5.0.11",
"dbSchemaVersion": "0.9.0",
"description": "A versatile notification API server",
"author": "f-w",
Expand Down Expand Up @@ -51,7 +51,6 @@
"compression": "^1.7.4",
"cron": "^3.1.5",
"crypto-random-string": "^3.3.0",
"csvtojson": "^2.0.10",
"ejs": "^3.1.9",
"feedparser": "^2.2.10",
"helmet": "^7.0.0",
Expand Down Expand Up @@ -89,6 +88,7 @@
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"commander": "^11.1.0",
"csvtojson": "^2.0.10",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/bulk-import/sample-subscription.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
serviceName,channel,userChannelId,state,unsubscriptionCode,confirmationRequest.sendRequest
myService,email,foo@bar.com,confirmed,12345,False
serviceName,channel,userChannelId,state,confirmationRequest.sendRequest
myService,email,foo@local.invalid,confirmed,False

0 comments on commit f275266

Please sign in to comment.