Skip to content

Commit cdb19fe

Browse files
authored
Merge pull request #18 from zigcccc/fix-userid-args-definition-in-pause-and-unpause-mutations
Replace `v.id('users')` with `v.string()` in pause/unpause args schema definition
2 parents c1f14bf + 3405ffd commit cdb19fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/component/public.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export const deleteNotificationsForUser = mutation({
189189

190190
// e.g. pause sending notifications while the user is active in the app
191191
export const pauseNotificationsForUser = mutation({
192-
args: { userId: v.id("users") },
192+
args: { userId: v.string() },
193193
returns: v.null(),
194194
handler: async (ctx, { userId }) => {
195195
const existingToken = await ctx.db
@@ -208,7 +208,7 @@ export const pauseNotificationsForUser = mutation({
208208
});
209209

210210
export const unpauseNotificationsForUser = mutation({
211-
args: { userId: v.id("users") },
211+
args: { userId: v.string() },
212212
returns: v.null(),
213213
handler: async (ctx, { userId }) => {
214214
const existingToken = await ctx.db

0 commit comments

Comments
 (0)