chore: rename collection creatorId to createdById (#1794)
This commit is contained in:
@@ -53,7 +53,7 @@ router.post("collections.create", auth(), async (ctx) => {
|
||||
icon,
|
||||
color,
|
||||
teamId: user.teamId,
|
||||
creatorId: user.id,
|
||||
createdById: user.id,
|
||||
private: isPrivate,
|
||||
sort,
|
||||
});
|
||||
|
||||
@@ -1109,7 +1109,7 @@ describe("#collections.delete", () => {
|
||||
// to ensure it isn't the last collection
|
||||
await buildCollection({
|
||||
teamId: user.teamId,
|
||||
creatorId: user.id,
|
||||
createdById: user.id,
|
||||
});
|
||||
|
||||
const res = await server.post("/api/collections.delete", {
|
||||
@@ -1127,7 +1127,7 @@ describe("#collections.delete", () => {
|
||||
// to ensure it isn't the last collection
|
||||
await buildCollection({
|
||||
teamId: user.teamId,
|
||||
creatorId: user.id,
|
||||
createdById: user.id,
|
||||
});
|
||||
|
||||
// archived document should not be deleted
|
||||
|
||||
Reference in New Issue
Block a user