Added note for using id as slug for free tier

refs e54395eab5

- adds comment on why we used `slugify(id)` instead of `slugify(name)` for free tier to avoid future confusion
This commit is contained in:
Rishabh 2022-03-11 18:08:47 +05:30
parent 1025be91d8
commit 50645e8b18

View File

@ -19,6 +19,9 @@ module.exports = createTransactionalMigration(
const id = ObjectID().toHexString();
logging.info(`Adding tier "${name}"`);
// `slugify(id) is used to ensure unique slug here, as existing tiers could be using any name including "Free"
// slugs are not used anywhere user-facing so the value is acceptable
await knex('products')
.insert({
id: id,