Skip to content

Commit

Permalink
bug fix in deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
qishibo committed Aug 21, 2022
1 parent 7e60e5a commit c5fcb2e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 627 deletions.
2 changes: 1 addition & 1 deletion pack/electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "another-redis-desktop-manager",
"version": "1.5.7",
"version": "1.5.8",
"description": "A faster, better and more stable redis desktop manager.",
"author": "Another",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion src/components/DeleteBatch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default {

// use final promise
delPromise.then((reply) => {
if (reply === 1) {
if (reply == 1) {
this.afterDelete();
}
else {
Expand Down
2 changes: 1 addition & 1 deletion src/components/KeyHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default {
)
.then(() => {
this.client.del(this.redisKey).then((reply) => {
if (reply === 1) {
if (reply == 1) {
this.$message.success({
message: this.$t('message.delete_success'),
duration: 1000,
Expand Down
2 changes: 1 addition & 1 deletion src/components/KeyList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export default {
const match = this.getMatchMode(false);

this.client.exists(match).then((reply) => {
this.keyList = (reply === 1) ? [Buffer.from(match)] : [];
this.keyList = (reply == 1) ? [Buffer.from(match)] : [];
}).catch(e => {
this.$message.error(e.message);
});
Expand Down
Loading

0 comments on commit c5fcb2e

Please sign in to comment.