File tree 3 files changed +6
-6
lines changed
src/graphql/types/Mutation
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
envConfigSchema ,
15
15
envSchemaAjv ,
16
16
} from "src/envConfigSchema" ;
17
- import { v4 as uuid } from "uuid " ;
17
+ import { uuidv7 } from "uuidv7 " ;
18
18
const envConfig = envSchema < EnvConfig > ( {
19
19
ajv : envSchemaAjv ,
20
20
dotenv : true ,
@@ -592,7 +592,7 @@ export async function insertCollections(
592
592
updaterId : string ;
593
593
} ) => ( {
594
594
...action_item ,
595
- id : action_item . id . length === 36 ? action_item . id : uuid ( ) ,
595
+ id : action_item . id . length === 36 ? action_item . id : uuidv7 ( ) ,
596
596
assignedAt : parseDate ( action_item . assignedAt ) ,
597
597
completionAt : parseDate ( action_item . completionAt ) ,
598
598
createdAt : parseDate ( action_item . createdAt ) ,
Original file line number Diff line number Diff line change 1
1
import { sql } from "drizzle-orm" ;
2
- import { v4 as uuid } from "uuid " ;
2
+ import { uuidv7 } from "uuidv7 " ;
3
3
import { actionItems } from "~/src/drizzle/tables/actionItems" ;
4
4
import { builder } from "~/src/graphql/builder" ;
5
5
import {
@@ -135,7 +135,7 @@ export const createActionItemCategoryMutation = builder.mutationField(
135
135
const [ createdActionItem ] = await ctx . drizzleClient
136
136
. insert ( actionItems )
137
137
. values ( {
138
- id : uuid ( ) ,
138
+ id : uuidv7 ( ) ,
139
139
creatorId : currentUserId ,
140
140
categoryId : parsedArgs . input . categoryId ,
141
141
assigneeId : parsedArgs . input . assigneeId ,
Original file line number Diff line number Diff line change 1
1
import { sql } from "drizzle-orm" ;
2
- import { v4 as uuid } from "uuid " ;
2
+ import { uuidv7 } from "uuidv7 " ;
3
3
import { actionItemCategories } from "~/src/drizzle/tables/actionItemCategories" ;
4
4
import { builder } from "~/src/graphql/builder" ;
5
5
import { TalawaGraphQLError } from "~/src/utilities/TalawaGraphQLError" ;
@@ -112,7 +112,7 @@ export const createActionItemCategoryMutation = builder.mutationField(
112
112
const [ createdCategory ] = await ctx . drizzleClient
113
113
. insert ( actionItemCategories )
114
114
. values ( {
115
- id : uuid ( ) ,
115
+ id : uuidv7 ( ) ,
116
116
name : parsedArgs . input . name ,
117
117
organizationId : parsedArgs . input . organizationId ,
118
118
creatorId : currentUserId ,
You can’t perform that action at this time.
0 commit comments