drop theme from users table
This commit is contained in:
parent
5a4c249a74
commit
ccc1251f7e
|
@ -95,15 +95,6 @@ export default {
|
|||
|
||||
return true
|
||||
},
|
||||
setTheme: async (parent, { theme }, { me, models }) => {
|
||||
if (!me) {
|
||||
throw new AuthenticationError('you must be logged in')
|
||||
}
|
||||
|
||||
await models.user.update({ where: { id: me.id }, data: { theme } })
|
||||
|
||||
return true
|
||||
},
|
||||
upsertBio: async (parent, { bio }, { me, models }) => {
|
||||
if (!me) {
|
||||
throw new AuthenticationError('you must be logged in')
|
||||
|
|
|
@ -17,7 +17,6 @@ export default gql`
|
|||
extend type Mutation {
|
||||
setName(name: String!): Boolean
|
||||
setSettings(tipDefault: Int!): Boolean
|
||||
setTheme(theme: String!): Boolean
|
||||
upsertBio(bio: String!): User!
|
||||
setWalkthrough(tipPopover: Boolean, upvotePopover: Boolean): Boolean
|
||||
}
|
||||
|
@ -37,7 +36,6 @@ export default gql`
|
|||
bio: Item
|
||||
sats: Int!
|
||||
msats: Int!
|
||||
theme: String!
|
||||
upvotePopover: Boolean!
|
||||
tipPopover: Boolean!
|
||||
}
|
||||
|
|
|
@ -17,7 +17,6 @@ export const ME = gql`
|
|||
id
|
||||
}
|
||||
hasInvites
|
||||
theme
|
||||
upvotePopover
|
||||
tipPopover
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `theme` on the `users` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "users" DROP COLUMN "theme";
|
|
@ -35,7 +35,6 @@ model User {
|
|||
checkedNotesAt DateTime?
|
||||
tipDefault Int @default(1)
|
||||
pubkey String? @unique
|
||||
theme String @default("light")
|
||||
|
||||
upvotePopover Boolean @default(false)
|
||||
tipPopover Boolean @default(false)
|
||||
|
|
Loading…
Reference in New Issue