mirror of
https://github.com/documenso/documenso.git
synced 2025-11-22 04:31:39 +10:00
wip: what if user ids were strings instead of numbers
This commit is contained in:
@ -4,7 +4,7 @@ import type { UserSecurityAuditLog, UserSecurityAuditLogType } from '@documenso/
|
||||
import type { FindResultResponse } from '../../types/search-params';
|
||||
|
||||
export type FindUserSecurityAuditLogsOptions = {
|
||||
userId: number;
|
||||
userId: string;
|
||||
type?: UserSecurityAuditLogType;
|
||||
page?: number;
|
||||
perPage?: number;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { prisma } from '@documenso/prisma';
|
||||
|
||||
export type GetMostRecentVerificationTokenByUserIdOptions = {
|
||||
userId: number;
|
||||
userId: string;
|
||||
};
|
||||
|
||||
export const getMostRecentVerificationTokenByUserId = async ({
|
||||
|
||||
@ -5,7 +5,7 @@ import { AppError, AppErrorCode } from '../../errors/app-error';
|
||||
import { updatePublicProfile } from './update-public-profile';
|
||||
|
||||
export type GetUserPublicProfileOptions = {
|
||||
userId: number;
|
||||
userId: string;
|
||||
};
|
||||
|
||||
type GetUserPublicProfileResponse = {
|
||||
|
||||
@ -8,7 +8,7 @@ import { UserSecurityAuditLogType } from '@documenso/prisma/client';
|
||||
import { AppError } from '../../errors/app-error';
|
||||
|
||||
export type UpdatePasswordOptions = {
|
||||
userId: number;
|
||||
userId: string;
|
||||
password: string;
|
||||
currentPassword: string;
|
||||
requestMetadata?: RequestMetadata;
|
||||
|
||||
@ -4,7 +4,7 @@ import { UserSecurityAuditLogType } from '@documenso/prisma/client';
|
||||
import type { RequestMetadata } from '../../universal/extract-request-metadata';
|
||||
|
||||
export type UpdateProfileOptions = {
|
||||
userId: number;
|
||||
userId: string;
|
||||
name: string;
|
||||
signature: string;
|
||||
requestMetadata?: RequestMetadata;
|
||||
|
||||
@ -3,7 +3,7 @@ import { prisma } from '@documenso/prisma';
|
||||
import { AppError, AppErrorCode } from '../../errors/app-error';
|
||||
|
||||
export type UpdatePublicProfileOptions = {
|
||||
userId: number;
|
||||
userId: string;
|
||||
data: {
|
||||
url?: string;
|
||||
bio?: string;
|
||||
|
||||
Reference in New Issue
Block a user