create-mikstack 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mikstack",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@mikstack/email": "^0.1.0",
23
23
  "@mikstack/form": "^0.1.0",
24
- "@mikstack/notifications": "^0.1.0",
24
+ "@mikstack/notifications": "^0.1.1",
25
25
  "@rocicorp/zero": "^0.25.12",
26
26
  "better-auth": "^1.4.18",
27
27
  "drizzle-orm": "^0.45.1",
@@ -23,7 +23,6 @@ function createAuth() {
23
23
  sendMagicLink: async ({ email, url }) => {
24
24
  await notif.send({
25
25
  type: "magic-link",
26
- userId: email, // before user exists, use email as userId
27
26
  recipientEmail: email,
28
27
  data: { url },
29
28
  });
@@ -56,9 +56,7 @@ export const notificationDelivery = pgTable("notification_delivery", {
56
56
  id: text("id")
57
57
  .primaryKey()
58
58
  .$defaultFn(() => crypto.randomUUID()),
59
- userId: text("user_id")
60
- .notNull()
61
- .references(() => user.id),
59
+ userId: text("user_id").references(() => user.id),
62
60
  type: text("type").notNull(),
63
61
  channel: text("channel").notNull(),
64
62
  status: text("status", { enum: ["pending", "sent", "delivered", "failed"] })