chore: rename collection creatorId to createdById (#1794)

This commit is contained in:
Rubén Moya
2021-01-12 08:17:31 +01:00
committed by GitHub
parent d258082c5f
commit 47369dd968
10 changed files with 46 additions and 27 deletions

View File

@@ -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,
});

View File

@@ -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