Fix rev when uploading a new plugin
This commit is contained in:
parent
e9fc30afda
commit
449905116e
|
@ -39,7 +39,7 @@ export async function upload(ctx: any) {
|
||||||
const existing = await db.get(pluginId)
|
const existing = await db.get(pluginId)
|
||||||
rev = existing._rev
|
rev = existing._rev
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
rev = null
|
rev = undefined
|
||||||
}
|
}
|
||||||
const doc = {
|
const doc = {
|
||||||
_id: pluginId,
|
_id: pluginId,
|
||||||
|
|
Loading…
Reference in New Issue